[tracker/gdbus: 32/92] libtracker-miner: Fixes memory leaks in tracker-miner-object.c



commit 7cde5fa70cb475803bc2ea9de22785ed4b28365a
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Dec 31 10:19:52 2010 +0100

    libtracker-miner: Fixes 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 285ad79..4fc4bea 100644
--- a/src/libtracker-miner/tracker-miner-object.c
+++ b/src/libtracker-miner/tracker-miner-object.c
@@ -719,7 +719,7 @@ handle_method_call_ignore_next_update (TrackerMiner          *miner,
                                        GDBusMethodInvocation *invocation,
                                        GVariant              *parameters)
 {
-	GStrv urls;
+	GStrv urls = NULL;
 	TrackerDBusRequest *request;
 
 	g_variant_get (parameters, "(^a&s)", &urls);
@@ -731,6 +731,7 @@ handle_method_call_ignore_next_update (TrackerMiner          *miner,
 
 	tracker_dbus_request_end (request, NULL);
 	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]