[tracker/libtracker-bus: 25/50] libtracker-client: Fix memleak, unref DBusPendingCall missing in notify callback



commit ce2792cc3b9fd708011bd44a864b9ebc56c12568
Author: Philip Van Hoof <philip codeminded be>
Date:   Wed Jul 21 14:30:29 2010 +0200

    libtracker-client: Fix memleak, unref DBusPendingCall missing in notify callback
    
    Ported from 2cd8d3c107535ce1b5f706a852e890391a5e5aa0

 src/libtracker-bus/tracker-bus-fd-update.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-bus/tracker-bus-fd-update.c b/src/libtracker-bus/tracker-bus-fd-update.c
index 28e43df..d90c652 100644
--- a/src/libtracker-bus/tracker-bus-fd-update.c
+++ b/src/libtracker-bus/tracker-bus-fd-update.c
@@ -173,6 +173,8 @@ sparql_update_fast_callback (DBusPendingCall *call,
 
 		fast_async_data_free (fad);
 
+		dbus_pending_call_unref (call);
+
 		return;
 	}
 
@@ -215,6 +217,8 @@ sparql_update_fast_callback (DBusPendingCall *call,
 	dbus_message_unref (reply);
 
 	fast_async_data_free (fad);
+
+	dbus_pending_call_unref (call);
 }
 
 static DBusPendingCall *



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