[tracker] libtracker-miner: Don't use g_hash_table_destroy() in TrackerTaskPool



commit e1a852b73cb621732e1a88a35118476af83410d6
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Aug 26 17:14:06 2014 +0100

    libtracker-miner: Don't use g_hash_table_destroy() in TrackerTaskPool
    
    Use g_hash_table_unref() instead.

 src/libtracker-miner/tracker-task-pool.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-task-pool.c b/src/libtracker-miner/tracker-task-pool.c
index 868f65b..f66d4b6 100644
--- a/src/libtracker-miner/tracker-task-pool.c
+++ b/src/libtracker-miner/tracker-task-pool.c
@@ -53,7 +53,7 @@ tracker_task_pool_finalize (GObject *object)
        TrackerTaskPoolPrivate *priv;
 
        priv = TRACKER_TASK_POOL (object)->priv;
-       g_hash_table_destroy (priv->tasks);
+       g_hash_table_unref (priv->tasks);
 
        G_OBJECT_CLASS (tracker_task_pool_parent_class)->finalize (object);
 }
@@ -146,7 +146,8 @@ tracker_task_pool_init (TrackerTaskPool *pool)
                                                         TRACKER_TYPE_TASK_POOL,
                                                         TrackerTaskPoolPrivate);
        priv->tasks = g_hash_table_new_full (g_file_hash,
-                                            (GEqualFunc) file_equal, NULL,
+                                            (GEqualFunc) file_equal,
+                                            NULL,
                                             (GDestroyNotify) tracker_task_unref);
        priv->limit = 0;
 }


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