[glib] GDBusProxy: Don't leak a GSimpleAsyncResult when doing async calls



commit 3940cc9a11fde063bb9f83cc362e575e5f378609
Author: David Zeuthen <davidz redhat com>
Date:   Tue Aug 3 11:14:21 2010 -0400

    GDBusProxy: Don't leak a GSimpleAsyncResult when doing async calls
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 gio/gdbusproxy.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdbusproxy.c b/gio/gdbusproxy.c
index 3898b79..65ea484 100644
--- a/gio/gdbusproxy.c
+++ b/gio/gdbusproxy.c
@@ -2157,6 +2157,7 @@ reply_cb (GDBusConnection *connection,
 
   /* no need to complete in idle since the method GDBusConnection already does */
   g_simple_async_result_complete (simple);
+  g_object_unref (simple);
 }
 
 static const GDBusMethodInfo *



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