[tracker/rss-enclosures] tracker-store: Fix invalid memory usage on the DBusGMethod



commit afe2ee3caf22b775a58850c0b39ef009b2b1450a
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Nov 4 15:33:18 2010 +0200

    tracker-store: Fix invalid memory usage on the DBusGMethod

 src/tracker-store/tracker-status.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-store/tracker-status.c b/src/tracker-store/tracker-status.c
index 71c9b17..4658ee6 100644
--- a/src/tracker-store/tracker-status.c
+++ b/src/tracker-store/tracker-status.c
@@ -192,8 +192,8 @@ tracker_status_get_progress  (TrackerStatus    *object,
 	guint request_id;
 
 	request_id = tracker_dbus_get_next_request_id ();
-	dbus_g_method_return (context, priv->progress);
 	tracker_dbus_request_success (request_id, context);
+	dbus_g_method_return (context, priv->progress);
 
 	return;
 }
@@ -208,9 +208,10 @@ tracker_status_get_status  (TrackerStatus    *object,
 	guint request_id;
 
 	request_id = tracker_dbus_get_next_request_id ();
-	dbus_g_method_return (context, priv->status);
 	tracker_dbus_request_success (request_id, context);
 
+	dbus_g_method_return (context, priv->status);
+
 	return;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]