tracker r1824 - in branches/indexer-split: . src/trackerd



Author: mr
Date: Wed Jul  2 12:00:25 2008
New Revision: 1824
URL: http://svn.gnome.org/viewvc/tracker?rev=1824&view=rev

Log:
	* src/trackerd/tracker-crawler.c: (crawler_finalize): Don't use
	g_free() to free a GFile. This is a hangover from when the files
	and directories queues had strings in them, now they have GFiles.


Modified:
   branches/indexer-split/ChangeLog
   branches/indexer-split/src/trackerd/tracker-crawler.c

Modified: branches/indexer-split/src/trackerd/tracker-crawler.c
==============================================================================
--- branches/indexer-split/src/trackerd/tracker-crawler.c	(original)
+++ branches/indexer-split/src/trackerd/tracker-crawler.c	Wed Jul  2 12:00:25 2008
@@ -117,10 +117,6 @@
 static void file_enumerate_children   (TrackerCrawler  *crawler,
 				       GFile           *file);
 
-#if 0
-static void file_queue_handler_set_up (TrackerCrawler  *crawler);
-#endif
-
 static guint signals[LAST_SIGNAL] = { 0, };
 
 G_DEFINE_TYPE(TrackerCrawler, tracker_crawler, G_TYPE_OBJECT)
@@ -217,10 +213,10 @@
 		priv->files_queue_handle_id = 0;
 	}
 
-	g_queue_foreach (priv->files, (GFunc) g_free, NULL);
+	g_queue_foreach (priv->files, (GFunc) g_object_unref, NULL);
 	g_queue_free (priv->files);
 
-	g_queue_foreach (priv->directories, (GFunc) g_free, NULL);
+	g_queue_foreach (priv->directories, (GFunc) g_object_unref, NULL);
 	g_queue_free (priv->directories);
 
 #ifdef HAVE_HAL



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