Commit 2199a9b0 authored by Peter Wu's avatar Peter Wu Committed by Richard Hughes

daemon: fix dbus proxy leak on shutdown

Fixes leaking some DBus objects on shutdown, causing noise in
gobject-list and valgrind logs.

https://bugs.freedesktop.org/show_bug.cgi?id=82659
parent 90994b0d
......@@ -158,7 +158,7 @@ main (gint argc, gchar **argv)
UpKbdBacklight *kbd_backlight = NULL;
UpWakeups *wakeups = NULL;
GOptionContext *context;
DBusGProxy *bus_proxy;
DBusGProxy *bus_proxy = NULL;
DBusGConnection *bus;
gboolean ret;
gint retval = 1;
......@@ -289,6 +289,8 @@ out:
g_object_unref (daemon);
if (loop != NULL)
g_main_loop_unref (loop);
if (bus_proxy != NULL)
g_object_unref (bus_proxy);
return retval;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment