[tracker/queue-fixes] tracker-store: Bugfix, the contact is freed at return, can't use it after that
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/queue-fixes] tracker-store: Bugfix, the contact is freed at return, can't use it after that
- Date: Thu, 4 Nov 2010 13:30:43 +0000 (UTC)
commit a2f354889b194dc225177087c011bd9a5a9cbdb0
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Nov 4 15:30:24 2010 +0200
tracker-store: Bugfix, the contact is freed at return, can't use it after that
src/tracker-store/tracker-backup.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-store/tracker-backup.c b/src/tracker-store/tracker-backup.c
index 25ebdbc..6ce51e4 100644
--- a/src/tracker-store/tracker-backup.c
+++ b/src/tracker-store/tracker-backup.c
@@ -71,10 +71,11 @@ backup_callback (GError *error, gpointer user_data)
return;
}
- dbus_g_method_return (info->context);
-
tracker_dbus_request_success (info->request_id,
info->context);
+
+ dbus_g_method_return (info->context);
+
}
static void
@@ -91,6 +92,9 @@ restore_callback (GError *error, gpointer user_data)
return;
}
+ tracker_dbus_request_success (info->request_id,
+ info->context);
+
dbus_g_method_return (info->context);
tracker_store_set_active (TRUE, NULL, NULL);
@@ -99,8 +103,6 @@ restore_callback (GError *error, gpointer user_data)
g_object_unref (info->resources);
}
- tracker_dbus_request_success (info->request_id,
- info->context);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]