GDBusObjectProxy: Don't leak connection
authorDavid Zeuthen <davidz@redhat.com>
Tue, 17 Apr 2012 21:50:40 +0000 (17:50 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 17 Apr 2012 21:51:55 +0000 (17:51 -0400)
Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbusobjectproxy.c

index 2d18301..e80641b 100644 (file)
@@ -71,6 +71,8 @@ g_dbus_object_proxy_finalize (GObject *object)
 
   g_hash_table_unref (proxy->priv->map_name_to_iface);
 
+  g_clear_object (&proxy->priv->connection);
+
   g_mutex_clear (&proxy->priv->lock);
 
   if (G_OBJECT_CLASS (g_dbus_object_proxy_parent_class)->finalize != NULL)