[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 111/116] libtracker-miner: Plug leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/shuffle-libtracker-miner: 111/116] libtracker-miner: Plug leak
- Date: Thu, 12 Dec 2019 10:30:13 +0000 (UTC)
commit 0f30f8f32c835a3dd4d57bbdcb2eb367e720d3c1
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Aug 10 22:42:35 2019 +0200
libtracker-miner: Plug leak
The sparql buffer holds a reference to the connection.
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 cfbb2f7c7..5a5fe0ba5 100644
--- a/src/libtracker-miner/tracker-sparql-buffer.c
+++ b/src/libtracker-miner/tracker-sparql-buffer.c
@@ -72,6 +72,8 @@ tracker_sparql_buffer_finalize (GObject *object)
priv = tracker_sparql_buffer_get_instance_private (TRACKER_SPARQL_BUFFER (object));
+ g_object_unref (priv->connection);
+
if (priv->flush_timeout_id != 0) {
g_source_remove (priv->flush_timeout_id);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]