tracker r3061 - in trunk: . src/trackerd



Author: mr
Date: Thu Mar 12 16:41:44 2009
New Revision: 3061
URL: http://svn.gnome.org/viewvc/tracker?rev=3061&view=rev

Log:
	* src/trackerd/tracker-crawler.c: (tracker_crawler_start):
	* src/trackerd/tracker-daemon.c: (indexer_finished_cb): Fixed 3
	memory leaks and a bug in the statistics signalling code rewrite.


Modified:
   trunk/ChangeLog
   trunk/src/trackerd/tracker-crawler.c
   trunk/src/trackerd/tracker-daemon.c

Modified: trunk/src/trackerd/tracker-crawler.c
==============================================================================
--- trunk/src/trackerd/tracker-crawler.c	(original)
+++ trunk/src/trackerd/tracker-crawler.c	Thu Mar 12 16:41:44 2009
@@ -973,6 +973,9 @@
 		} else {
 			g_message ("  No directories from module config");
 		}
+
+		g_list_free (paths);
+		g_list_free (recurse_paths);
 	} else {
 		GSList *new_paths;
 

Modified: trunk/src/trackerd/tracker-daemon.c
==============================================================================
--- trunk/src/trackerd/tracker-daemon.c	(original)
+++ trunk/src/trackerd/tracker-daemon.c	Thu Mar 12 16:41:44 2009
@@ -205,7 +205,7 @@
 			g_message ("  Adding '%s' with count:%d", 
 				   service_type,
 				   new_count);
-			strv[i++] = g_strdup (service_type);
+			strv[i] = g_strdup (service_type);
 		}
 
 		/* Emit signal */
@@ -252,6 +252,7 @@
 		if (l) {
 			l = g_slist_reverse (l);
 			strv = tracker_dbus_slist_to_strv (l);
+			g_slist_free (l);
 
 			g_signal_emit (daemon, signals[SERVICE_STATISTICS_UPDATED], 0, strv);
 			g_strfreev (strv);
@@ -260,6 +261,9 @@
 
 		}
 	}
+
+	g_ptr_array_foreach (new_stats, (GFunc) g_strfreev, NULL);
+	g_ptr_array_free (new_stats, TRUE);
 }
 
 static void



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