[tracker] libtracker-client: Fix memleak, unref DBusPendingCall missing in notify callback
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-client: Fix memleak, unref DBusPendingCall missing in notify callback
- Date: Mon, 19 Jul 2010 19:24:28 +0000 (UTC)
commit 2cd8d3c107535ce1b5f706a852e890391a5e5aa0
Author: Aleksander Morgado <aleksander lanedo com>
Date: Mon Jul 19 21:21:53 2010 +0200
libtracker-client: Fix memleak, unref DBusPendingCall missing in notify callback
src/libtracker-client/tracker.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-client/tracker.c b/src/libtracker-client/tracker.c
index 681d676..3c7d907 100644
--- a/src/libtracker-client/tracker.c
+++ b/src/libtracker-client/tracker.c
@@ -1037,6 +1037,7 @@ sparql_update_fast_callback (DBusPendingCall *call,
fast_async_data_free (fad);
+ dbus_pending_call_unref (call);
return;
}
@@ -1078,6 +1079,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]