[tracker/direct-access: 101/121] 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: 101/121] libtracker-client: Fix memleak, unref DBusPendingCall missing in notify callback
- Date: Thu, 22 Jul 2010 14:51:03 +0000 (UTC)
commit d4540773b32e9d6b93089ffca7fcb5d67db475c7
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]