[tracker] tracker-extract: Invert initialization order



commit 5aff21587baad63c2b8f743a17505a6697aff5ff
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Nov 30 13:50:19 2014 +0100

    tracker-extract: Invert initialization order
    
    tracker_extract_persistence_invalidate() may already be using indirectly
    the priv->persistence hashtable, ensure it's set up before this is called.

 src/tracker-extract/tracker-extract-decorator.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-decorator.c b/src/tracker-extract/tracker-extract-decorator.c
index 82996c0..bfb86c7 100644
--- a/src/tracker-extract/tracker-extract-decorator.c
+++ b/src/tracker-extract/tracker-extract-decorator.c
@@ -620,9 +620,6 @@ tracker_extract_decorator_init (TrackerExtractDecorator *decorator)
        TrackerExtractDecoratorPrivate *priv;
 
        decorator->priv = priv = TRACKER_EXTRACT_DECORATOR_GET_PRIVATE (decorator);
-       priv->persistence = tracker_extract_persistence_initialize (decorator_retry_file,
-                                                                   decorator_ignore_file,
-                                                                   decorator);
        priv->recovery_files = g_hash_table_new_full (g_str_hash, g_str_equal,
                                                      (GDestroyNotify) g_free,
                                                      (GDestroyNotify) g_object_unref);
@@ -678,6 +675,9 @@ tracker_extract_decorator_initable_init (GInitable     *initable,
                ret = FALSE;
        }
 
+       priv->persistence = tracker_extract_persistence_initialize (decorator_retry_file,
+                                                                   decorator_ignore_file,
+                                                                   decorator);
 out:
        g_clear_object (&conn);
 


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