[tracker/gdbus-porting] Fix memory leaks in tracker-miner-object.c
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus-porting] Fix memory leaks in tracker-miner-object.c
- Date: Fri, 31 Dec 2010 09:21:55 +0000 (UTC)
commit eaad59b0769ea713be94c0f07bc5395a3fb486eb
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Dec 31 10:19:52 2010 +0100
Fix memory leaks in tracker-miner-object.c
src/libtracker-miner/tracker-miner-object.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-object.c b/src/libtracker-miner/tracker-miner-object.c
index e407c84..a97b895 100644
--- a/src/libtracker-miner/tracker-miner-object.c
+++ b/src/libtracker-miner/tracker-miner-object.c
@@ -712,7 +712,7 @@ handle_method_call_ignore_next_update (TrackerMiner *miner,
GDBusMethodInvocation *invocation,
GVariant *parameters)
{
- GStrv urls;
+ GStrv urls = NULL;
guint request_id;
request_id = tracker_dbus_get_next_request_id ();
@@ -727,6 +727,7 @@ handle_method_call_ignore_next_update (TrackerMiner *miner,
tracker_gdbus_request_success (request_id, invocation);
g_dbus_method_invocation_return_value (invocation, NULL);
+ g_free (urls);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]