GDBusProxy: Don't leak a GSimpleAsyncResult when doing async calls
authorDavid Zeuthen <davidz@redhat.com>
Tue, 3 Aug 2010 15:14:21 +0000 (11:14 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 3 Aug 2010 15:14:21 +0000 (11:14 -0400)
Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbusproxy.c

index 3898b79..65ea484 100644 (file)
@@ -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 *