Commit 3c9e8480 authored by Carlos Garnacho's avatar Carlos Garnacho

tracker-extract: Don't lock on freed mutexes

report_statistics() was locking on a mutex that was already freed,
so actually free it after this last use.
parent 3bd2c82e
......@@ -152,10 +152,6 @@ tracker_extract_finalize (GObject *object)
/* FIXME: Shutdown modules? */
if (priv->task_mutex) {
g_mutex_free (priv->task_mutex);
}
g_hash_table_destroy (priv->single_thread_extractors);
g_thread_pool_free (priv->thread_pool, TRUE, FALSE);
......@@ -169,6 +165,10 @@ tracker_extract_finalize (GObject *object)
g_hash_table_destroy (priv->statistics_data);
if (priv->task_mutex) {
g_mutex_free (priv->task_mutex);
}
G_OBJECT_CLASS (tracker_extract_parent_class)->finalize (object);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment