Plug a minor memory leak in GDBusObjectProxy
authorMatthias Clasen <mclasen@redhat.com>
Mon, 6 Aug 2012 15:03:42 +0000 (11:03 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 6 Aug 2012 15:03:42 +0000 (11:03 -0400)
As pointed out by Patrick Ohly in bug 680505,
GDBusObjectProxy was forgetting to free its object_path.

gio/gdbusobjectproxy.c

index e80641b..da76c8b 100644 (file)
@@ -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)