[tracker/rss-enclosures] TrackerMinerFS: always set current_parent in ensure_mtime_cache()



commit d3c1d0a9d1ba769a635f6e337b0b469973e1b7ce
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Apr 22 15:31:38 2010 +0200

    TrackerMinerFS: always set current_parent in ensure_mtime_cache()

 src/libtracker-miner/tracker-miner-fs.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index a86a552..9e24129 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2169,12 +2169,13 @@ ensure_mtime_cache (TrackerMinerFS *fs,
 			/* Cache is still valid */
 			g_object_unref (parent);
 			return;
-		} else {
-			g_object_unref (fs->private->current_parent);
-			fs->private->current_parent = parent;
 		}
+
+		g_object_unref (fs->private->current_parent);
 	}
 
+	fs->private->current_parent = parent;
+
 	g_hash_table_remove_all (fs->private->mtime_cache);
 
 	uri = g_file_get_uri (parent);



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