diff options
author | David Zeuthen <davidz@redhat.com> | 2012-04-17 17:50:40 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2012-04-17 17:51:55 -0400 |
commit | eedb6d8366a9cf4e638fe34ebdca17b387e41ce5 (patch) | |
tree | f420f0fed3b565ea753b09a013bd59ca79a6d8fe | |
parent | 3964e708e9a4eb7c23c0aa651ccf8bc7a57cbbf0 (diff) | |
download | glib-eedb6d8366a9cf4e638fe34ebdca17b387e41ce5.tar.gz |
GDBusObjectProxy: Don't leak connection
Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r-- | gio/gdbusobjectproxy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/gdbusobjectproxy.c b/gio/gdbusobjectproxy.c index 2d1830113..e80641b69 100644 --- a/gio/gdbusobjectproxy.c +++ b/gio/gdbusobjectproxy.c @@ -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) |