[tracker-miners/wip/carlosg/miner-files-queues: 10/10] libtracker-miner: Fix reference count of array
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/miner-files-queues: 10/10] libtracker-miner: Fix reference count of array
- Date: Thu, 30 Dec 2021 10:59:58 +0000 (UTC)
commit 1657955af78eb12d1fa30aa11ae76aba0b67bda6
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Dec 29 11:53:30 2021 +0100
libtracker-miner: Fix reference count of array
We are missing to set an extra ref on the SPARQL buffer task
array. This causes warnings when trying to lose this extra ref
after a flush error happens.
src/libtracker-miner/tracker-sparql-buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-miner/tracker-sparql-buffer.c b/src/libtracker-miner/tracker-sparql-buffer.c
index ca24cbbee..ee62b18cc 100644
--- a/src/libtracker-miner/tracker-sparql-buffer.c
+++ b/src/libtracker-miner/tracker-sparql-buffer.c
@@ -425,7 +425,7 @@ tracker_sparql_buffer_flush_finish (TrackerSparqlBuffer *buffer,
tasks = g_task_propagate_pointer (G_TASK (res), error);
if (!tasks)
- tasks = g_task_get_task_data (G_TASK (res));
+ tasks = g_ptr_array_ref (g_task_get_task_data (G_TASK (res)));
return tasks;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]