[gnome-photos/wip/foo: 2/17] tracker-controller: Unref the cursor earlier
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/foo: 2/17] tracker-controller: Unref the cursor earlier
- Date: Sat, 30 Mar 2013 16:53:55 +0000 (UTC)
commit c7ae246ebb5de770e74fae59502cc8a78ce97ad3
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Mar 30 17:51:54 2013 +0100
tracker-controller: Unref the cursor earlier
This makes it easier to follow the ref-unref pairs.
src/photos-tracker-controller.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-tracker-controller.c b/src/photos-tracker-controller.c
index 0730663..d4fb120 100644
--- a/src/photos-tracker-controller.c
+++ b/src/photos-tracker-controller.c
@@ -120,7 +120,6 @@ photos_tracker_controller_cursor_next (GObject *source_object, GAsyncResult *res
{
tracker_sparql_cursor_close (cursor);
photos_tracker_controller_query_finished (self, NULL);
- g_object_unref (cursor);
g_object_unref (self);
return;
}
@@ -157,6 +156,7 @@ photos_tracker_controller_query_executed (GObject *source_object, GAsyncResult *
self->priv->cancellable,
photos_tracker_controller_cursor_next,
g_object_ref (self));
+ g_object_unref (cursor);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]