From b2ddbd8f556c41f4d076c4cc4788684a9c84e7a2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 6 Aug 2012 11:03:42 -0400 Subject: [PATCH] Plug a minor memory leak in GDBusObjectProxy As pointed out by Patrick Ohly in bug 680505, GDBusObjectProxy was forgetting to free its object_path. --- gio/gdbusobjectproxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gio/gdbusobjectproxy.c b/gio/gdbusobjectproxy.c index e80641b69..da76c8bc9 100644 --- a/gio/gdbusobjectproxy.c +++ b/gio/gdbusobjectproxy.c @@ -73,6 +73,8 @@ g_dbus_object_proxy_finalize (GObject *object) g_clear_object (&proxy->priv->connection); + g_free (proxy->priv->object_path); + g_mutex_clear (&proxy->priv->lock); if (G_OBJECT_CLASS (g_dbus_object_proxy_parent_class)->finalize != NULL)