[tracker/gdbus-porting: 21/33] libtracker-miner: Avoid memory allocation, fixes memoryleak



commit af295b2a1de0aec0f4921a63e8f691cbbeb2d6c2
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 9dc5ec5..e407c84 100644
--- a/src/libtracker-miner/tracker-miner-object.c
+++ b/src/libtracker-miner/tracker-miner-object.c
@@ -774,12 +774,12 @@ handle_method_call_pause (TrackerMiner          *miner,
 {
 	GError *local_error = NULL;
 	gint cookie;
-	gchar *application = NULL, *reason = NULL;
+	const gchar *application = NULL, *reason = NULL;
 	guint request_id;
 
 	request_id = tracker_dbus_get_next_request_id ();
 
-	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]