[tracker-miners] libtracker-miner: Fix circular reference
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners] libtracker-miner: Fix circular reference
- Date: Sun, 30 Aug 2020 21:48:59 +0000 (UTC)
commit 23f7547bff078fc80884de5a2b8ba35e2a6ebc6e
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Aug 30 22:41:26 2020 +0200
libtracker-miner: Fix circular reference
The GTask has an UpdateProcessingTaskContext, which has a TrackerTask
reference, which has a GTask reference. Drop one of those references,
so everything can be cleaned up properly.
src/libtracker-miner/tracker-miner-fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 9e0e05389..2c1742545 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1364,7 +1364,7 @@ item_add_or_update (TrackerMinerFS *fs,
g_task_set_task_data (gtask, ctxt,
(GDestroyNotify) update_processing_task_context_free);
- task = tracker_task_new (file, g_object_ref (gtask), g_object_unref);
+ task = tracker_task_new (file, gtask, NULL);
ctxt->task = tracker_task_ref (task);
tracker_task_pool_add (priv->task_pool, task);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]