[tracker-miners/wip/carlosg/fix-leaks: 3/5] libtracker-miner: Plug GTask leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/fix-leaks: 3/5] libtracker-miner: Plug GTask leak
- Date: Sun, 5 Dec 2021 18:25:38 +0000 (UTC)
commit 97563a11f60e09e1be2da26d66c88edf598f2148
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Dec 5 12:33:33 2021 +0100
libtracker-miner: Plug GTask leak
The task last reference is not being dropped after
tracker_sparql_buffer_flush_finish(), ensure it disposes after that.
src/libtracker-miner/tracker-sparql-buffer.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/libtracker-miner/tracker-sparql-buffer.c b/src/libtracker-miner/tracker-sparql-buffer.c
index 40634f2c1..3eddd3728 100644
--- a/src/libtracker-miner/tracker-sparql-buffer.c
+++ b/src/libtracker-miner/tracker-sparql-buffer.c
@@ -179,6 +179,8 @@ update_batch_data_free (UpdateBatchData *batch_data)
batch_data->buffer);
g_ptr_array_unref (batch_data->tasks);
+ g_clear_object (&batch_data->async_task);
+
g_slice_free (UpdateBatchData, batch_data);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]