summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-10 18:59:08 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-10 18:59:08 +0200
commitd43ab28a29420a61d031908abbf1d13b2cb35796 (patch)
treeeb9ff6cd381365924cb538d371befd7c8742f694
parente4858d94343bba2afbebcd1a4925c981a38a9579 (diff)
lib: Fix a small memory leak
The bus was never unreferenced in the UpWakeups object.
-rw-r--r--libupower-glib/up-wakeups.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libupower-glib/up-wakeups.c b/libupower-glib/up-wakeups.c
index 3729ad7..ed6bf80 100644
--- a/libupower-glib/up-wakeups.c
+++ b/libupower-glib/up-wakeups.c
@@ -377,6 +377,8 @@ up_wakeups_finalize (GObject *object)
g_object_unref (wakeups->priv->proxy);
if (wakeups->priv->prop_proxy != NULL)
g_object_unref (wakeups->priv->prop_proxy);
+ if (wakeups->priv->bus)
+ dbus_g_connection_unref (wakeups->priv->bus);
G_OBJECT_CLASS (up_wakeups_parent_class)->finalize (object);
}