diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-11-23 00:13:54 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-11-26 11:56:17 +0000 |
commit | 2199a9b0b5a631a69bb5b4ac00c7c6e8a9007240 (patch) | |
tree | f1289bbda96e57fd52b812a8faf6a2170daa6f17 | |
parent | 90994b0d81ca8e44e6a150c53d2c713fad39c29c (diff) | |
download | upower-2199a9b0b5a631a69bb5b4ac00c7c6e8a9007240.tar.gz |
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
-rw-r--r-- | src/up-main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/up-main.c b/src/up-main.c index cb835b7..25f16d3 100644 --- a/src/up-main.c +++ b/src/up-main.c @@ -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; } |