Commit a7b72887 authored by Martyn James Russell's avatar Martyn James Russell

Fixed 3 memory leaks and a bug in the statistics signalling code rewrite.

	* 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.

svn path=/trunk/; revision=3061
parent 9a04786a
2009-03-12 Martyn Russell <martyn@imendio.com>
* 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.
2009-03-12 Martyn Russell <martyn@imendio.com>
* src/trackerd/tracker-daemon.c: Fixed the
......
......@@ -973,6 +973,9 @@ tracker_crawler_start (TrackerCrawler *crawler)
} else {
g_message (" No directories from module config");
}
g_list_free (paths);
g_list_free (recurse_paths);
} else {
GSList *new_paths;
......
......@@ -205,7 +205,7 @@ indexer_finished_cb (DBusGProxy *proxy,
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 @@ indexer_finished_cb (DBusGProxy *proxy,
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 @@ indexer_finished_cb (DBusGProxy *proxy,
}
}
g_ptr_array_foreach (new_stats, (GFunc) g_strfreev, NULL);
g_ptr_array_free (new_stats, TRUE);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment