[tracker/direct-access] libtracker-client: Fix memleak, unref DBusPendingCall missing in notify callback
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/direct-access] libtracker-client: Fix memleak, unref DBusPendingCall missing in notify callback
- Date: Thu, 22 Jul 2010 09:58:43 +0000 (UTC)
commit 0f5e1ce175f745487f48bbdc3d6b899aec43854a
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]