[tracker/tracker-1.2] tracker-extract: Invert initialization order



commit a415b1a8f82e8a415ee01126ffdb21176b5cf890
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 7d0f2d2..b1116f5 100644
--- a/src/tracker-extract/tracker-extract-decorator.c
+++ b/src/tracker-extract/tracker-extract-decorator.c
@@ -619,9 +619,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);
@@ -677,6 +674,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]