diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-10 18:59:08 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-10 18:59:08 +0200 |
commit | d43ab28a29420a61d031908abbf1d13b2cb35796 (patch) | |
tree | eb9ff6cd381365924cb538d371befd7c8742f694 /libupower-glib | |
parent | e4858d94343bba2afbebcd1a4925c981a38a9579 (diff) | |
download | upower-d43ab28a29420a61d031908abbf1d13b2cb35796.tar.gz |
lib: Fix a small memory leak
The bus was never unreferenced in the UpWakeups object.
Diffstat (limited to 'libupower-glib')
-rw-r--r-- | libupower-glib/up-wakeups.c | 2 |
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); } |