[tracker-miners/wip/carlosg/fix-leaks: 1/5] libtracker-miner: Do not leak TrackerSparqlStatement




commit ba7a2345a3ba1aa6d23417fc9897303e5a826c35
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Dec 5 12:30:47 2021 +0100

    libtracker-miner: Do not leak TrackerSparqlStatement
    
    The statement created to query the URNs in TrackerMinerFs is
    not being freed on finalize.

 src/libtracker-miner/tracker-miner-fs.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index a49e8dbe2..67f8e6c96 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -702,6 +702,7 @@ fs_finalize (GObject *object)
        g_timer_destroy (priv->timer);
        g_timer_destroy (priv->extraction_timer);
 
+       g_clear_object (&priv->urn_query);
        g_clear_pointer (&priv->urn_lru, tracker_lru_unref);
 
        if (priv->item_queues_handler_id) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]