[glib] Plug a minor memory leak in GDBusObjectProxy



commit b2ddbd8f556c41f4d076c4cc4788684a9c84e7a2
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 6 11:03:42 2012 -0400

    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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdbusobjectproxy.c b/gio/gdbusobjectproxy.c
index e80641b..da76c8b 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]