[tracker] tracker-extract: Don't lock on freed mutexes
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract: Don't lock on freed mutexes
- Date: Fri, 9 Dec 2011 17:11:05 +0000 (UTC)
commit 3c9e8480c1c93445aa7a986fce09e6143702fb5c
Author: Carlos Garnacho <carlos lanedo com>
Date: Fri Dec 9 17:28:46 2011 +0100
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.
src/tracker-extract/tracker-extract.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index 04d1f38..71b6e22 100644
--- a/src/tracker-extract/tracker-extract.c
+++ b/src/tracker-extract/tracker-extract.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]