[tracker/gdbus: 16/74] libtracker-miner: Avoid memory allocation, fixes memoryleak
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus: 16/74] libtracker-miner: Avoid memory allocation, fixes memoryleak
- Date: Fri, 14 Jan 2011 13:06:02 +0000 (UTC)
commit 22d500e3dc8f34dd120c5c0025a256aa2a9f4aab
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]