[glib] dbusaddress: do not leak error on win32 code
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] dbusaddress: do not leak error on win32 code
- Date: Tue, 29 Nov 2016 08:21:23 +0000 (UTC)
commit 93179f10b8cc5e8e49129c10b80a5c2df27e118d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Nov 29 09:20:36 2016 +0100
dbusaddress: do not leak error on win32 code
gio/gdbusaddress.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdbusaddress.c b/gio/gdbusaddress.c
index a9130ef..26fbec4 100644
--- a/gio/gdbusaddress.c
+++ b/gio/gdbusaddress.c
@@ -1356,6 +1356,7 @@ open_console_window (void)
atexit (wait_console_window);
}
}
+
static void
idle_timeout_cb (GDBusDaemon *daemon, gpointer user_data)
{
@@ -1404,12 +1405,13 @@ g_win32_run_session_bus (HWND hwnd, HINSTANCE hinst, char *cmdline, int nCmdShow
if (daemon == NULL)
{
g_printerr ("Can't init bus: %s\n", error->message);
+ g_error_free (error);
return;
}
g_signal_connect (daemon, "idle-timeout", G_CALLBACK (idle_timeout_cb), loop);
- if ( publish_session_bus (_g_dbus_daemon_get_address (daemon)))
+ if (publish_session_bus (_g_dbus_daemon_get_address (daemon)))
{
g_main_loop_run (loop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]