[tracker/hierarchical-indexing] libtracker-miner: Free nodes using G_POST_ORDER



commit a1f2421f8b7f3fa619f061395d5aba0f0866c819
Author: Martyn Russell <martyn lanedo com>
Date:   Thu Feb 18 17:33:29 2010 +0000

    libtracker-miner: Free nodes using G_POST_ORDER
    
    So we free children before parents

 src/libtracker-miner/tracker-miner-fs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index a4a3bc5..dac125c 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2329,7 +2329,7 @@ static void
 crawled_directory_data_free (CrawledDirectoryData *data)
 {
 	g_node_traverse (data->tree,
-			 G_PRE_ORDER,
+			 G_POST_ORDER,
 			 G_TRAVERSE_ALL,
 			 -1,
 			 crawled_directory_data_free_foreach,



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