[tracker] tracker-extract: Keep ref on recovery files



commit 5d1f911056838df9946dc6c8f54cf107fe2ffd43
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jul 1 10:35:52 2015 +0200

    tracker-extract: Keep ref on recovery files
    
    The hashtable expects its own ref here, otherwise we get critical
    warnings after processing that item.

 src/tracker-extract/tracker-extract-decorator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-decorator.c b/src/tracker-extract/tracker-extract-decorator.c
index 80bee9c..f500751 100644
--- a/src/tracker-extract/tracker-extract-decorator.c
+++ b/src/tracker-extract/tracker-extract-decorator.c
@@ -585,7 +585,7 @@ decorator_retry_file (GFile    *file,
        gchar *path;
 
        path = g_file_get_uri (file);
-       g_hash_table_insert (priv->recovery_files, path, file);
+       g_hash_table_insert (priv->recovery_files, path, g_object_ref (file));
        tracker_decorator_fs_prepend_file (TRACKER_DECORATOR_FS (decorator), file);
 }
 


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