[tracker/binary-log-2: 29/47] libtracker-db: Fix journal reader error handling



commit 07ab8bcc6fe3270db185eacdb92006d1d3687875
Author: Jürg Billeter <j bitron ch>
Date:   Wed Jan 6 15:14:24 2010 +0100

    libtracker-db: Fix journal reader error handling

 src/libtracker-db/tracker-db-journal.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-journal.c b/src/libtracker-db/tracker-db-journal.c
index 1cb8408..d0eb2d7 100644
--- a/src/libtracker-db/tracker-db-journal.c
+++ b/src/libtracker-db/tracker-db-journal.c
@@ -557,11 +557,12 @@ tracker_db_journal_reader_init (const gchar *filename)
 	reader.file = g_mapped_file_new (reader.filename, FALSE, &error);
 
 	if (error) {
-		g_warning ("Could not create TrackerDBJournalEntry for file '%s', %s", 
+		g_warning ("Could not create TrackerDBJournalReader for file '%s', %s",
 		           reader.filename,
 		           error->message ? error->message : "no error given");
 		g_error_free (error);
-		tracker_db_journal_reader_shutdown ();
+		g_free (reader.filename);
+		reader.filename = NULL;
 
 		return FALSE;
 	}



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