[tracker/gdbus] plugins/evolution: Fix memory leak of uids list
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus] plugins/evolution: Fix memory leak of uids list
- Date: Thu, 28 Oct 2010 13:32:10 +0000 (UTC)
commit 1608395a726051a9f2837322bed648bac520cbbe
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Oct 28 15:31:47 2010 +0200
plugins/evolution: Fix memory leak of uids list
src/plugins/evolution/tracker-evolution-plugin.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/evolution/tracker-evolution-plugin.c b/src/plugins/evolution/tracker-evolution-plugin.c
index 7eb88ea..501fa04 100644
--- a/src/plugins/evolution/tracker-evolution-plugin.c
+++ b/src/plugins/evolution/tracker-evolution-plugin.c
@@ -891,7 +891,7 @@ introduce_walk_folders_in_folder (TrackerEvolutionPlugin *self,
guint ret = SQLITE_OK;
gchar *query, *status;
sqlite3_stmt *stmt = NULL;
- GPtrArray *uids = g_ptr_array_new ();
+ GPtrArray *uids = g_ptr_array_new_with_free_func (g_free);
query = sqlite3_mprintf ("SELECT uid FROM %Q "
"WHERE modified > %"G_GUINT64_FORMAT,
@@ -1104,6 +1104,7 @@ introduce_walk_folders_in_folder (TrackerEvolutionPlugin *self,
}
iter = iter->next;
+ g_ptr_array_unref (uids);
}
g_object_set (self, "progress", 1.0, "status", "Idle", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]