[tracker/gdbus-porting] Avoid memory allocation, fix memoryleak
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus-porting] Avoid memory allocation, fix memoryleak
- Date: Thu, 30 Dec 2010 16:34:23 +0000 (UTC)
commit 528283ec22851c238d08067f877af6e666523ba9
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Dec 30 17:33:06 2010 +0100
Avoid memory allocation, fix 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]