[tracker/journal-rotating] Memoryleak squashme
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/journal-rotating] Memoryleak squashme
- Date: Tue, 11 May 2010 15:06:51 +0000 (UTC)
commit c9d4a57ba64c5d2dd537aa47b85908a7c23b9daa
Author: Philip Van Hoof <philip codeminded be>
Date: Tue May 11 17:05:44 2010 +0200
Memoryleak squashme
src/libtracker-db/tracker-db-journal.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-journal.c b/src/libtracker-db/tracker-db-journal.c
index e668748..7fc05a6 100644
--- a/src/libtracker-db/tracker-db-journal.c
+++ b/src/libtracker-db/tracker-db-journal.c
@@ -821,15 +821,16 @@ reader_get_next_filepath (JournalReader *jreader)
dest_dir = g_file_new_for_path (rotating_settings.rotate_to);
filename = g_path_get_basename (test);
+ g_free (test);
possible = g_file_get_child (dest_dir, filename);
g_object_unref (dest_dir);
+ g_free (filename);
if (g_file_query_exists (possible, NULL)) {
jreader->current_file++;
filename_open = g_file_get_path (possible);
}
g_object_unref (possible);
- g_free (test);
}
if (filename_open == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]