[tracker/rss-enclosures] tracker-store: Bugfix, the contact is freed at return, can't use it after that
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] tracker-store: Bugfix, the contact is freed at return, can't use it after that
- Date: Wed, 24 Nov 2010 02:23:27 +0000 (UTC)
commit 4dca184c67f1023b5237af5c57030863f2733bb4
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]