[tracker/gdbus: 29/101] libtracker-miner: Avoid memory allocation,	fixes memoryleak
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [tracker/gdbus: 29/101] libtracker-miner: Avoid memory allocation,	fixes memoryleak
- Date: Tue, 18 Jan 2011 08:48:38 +0000 (UTC)
commit cd95206d23255ca828c319870aaa89292760b004
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Dec 30 17:33:06 2010 +0100
    libtracker-miner: Avoid memory allocation, fixes memoryleak
 src/libtracker-miner/tracker-miner-object.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-object.c b/src/libtracker-miner/tracker-miner-object.c
index c779b0d..285ad79 100644
--- a/src/libtracker-miner/tracker-miner-object.c
+++ b/src/libtracker-miner/tracker-miner-object.c
@@ -769,10 +769,10 @@ handle_method_call_pause (TrackerMiner          *miner,
 {
 	GError *local_error = NULL;
 	gint cookie;
-	gchar *application = NULL, *reason = NULL;
+	const gchar *application = NULL, *reason = NULL;
 	TrackerDBusRequest *request;
 
-	g_variant_get (parameters, "(ss)", &application, &reason);
+	g_variant_get (parameters, "(&s&s)", &application, &reason);
 
 	tracker_gdbus_async_return_if_fail (application != NULL, invocation);
 	tracker_gdbus_async_return_if_fail (reason != NULL, invocation);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]