[tracker/tracker-1.2] Take ownership of the GFile in the GPtrArray
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-1.2] Take ownership of the GFile in the GPtrArray
- Date: Thu, 6 Nov 2014 10:27:22 +0000 (UTC)
commit dff41abe3e4240619db677292b6d65f88eab7eb5
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Oct 27 13:34:43 2014 +0100
Take ownership of the GFile in the GPtrArray
https://bugzilla.gnome.org/show_bug.cgi?id=739237
src/libtracker-miner/tracker-file-notifier.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 719bd71..af89a28 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -158,7 +158,7 @@ root_data_new (TrackerFileNotifier *notifier,
data = g_new0 (RootData, 1);
data->root = g_object_ref (file);
data->pending_dirs = g_queue_new ();
- data->query_files = g_ptr_array_new ();
+ data->query_files = g_ptr_array_new_with_free_func (g_object_unref);
data->updated_dirs = g_ptr_array_new ();
data->flags = flags;
@@ -424,7 +424,7 @@ file_notifier_add_node_foreach (GNode *node,
if (depth != 0 || file == priv->current_index_root->root)
g_ptr_array_add (priv->current_index_root->query_files,
- canonical);
+ g_object_ref (canonical));
}
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]