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



commit 8a81eea44b0bbfdf10e6b7cd0a71e39c5757dff9
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]