[tracker/gdbus: 29/92] 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/92] libtracker-miner: Avoid memory allocation, fixes memoryleak
- Date: Mon, 17 Jan 2011 09:34:06 +0000 (UTC)
commit 4e5180deeb54d3565810c181a5842cadfa10fcff
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]