[glib] GDBusObjectProxy: Don't leak connection
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GDBusObjectProxy: Don't leak connection
- Date: Tue, 17 Apr 2012 22:00:04 +0000 (UTC)
commit eedb6d8366a9cf4e638fe34ebdca17b387e41ce5
Author: David Zeuthen <davidz redhat com>
Date: Tue Apr 17 17:50:40 2012 -0400
GDBusObjectProxy: Don't leak connection
Signed-off-by: David Zeuthen <davidz redhat com>
gio/gdbusobjectproxy.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdbusobjectproxy.c b/gio/gdbusobjectproxy.c
index 2d18301..e80641b 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]