[tracker/tracker-0.8] libtracker-data: Fix memory leak on journal replay



commit dd2792c6c77a151565c028195060b4102a3618aa
Author: Jürg Billeter <j bitron ch>
Date:   Thu Apr 15 16:27:43 2010 +0200

    libtracker-data: Fix memory leak on journal replay

 src/libtracker-data/tracker-data-update.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 37bb4b4..90a83d8 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2526,6 +2526,7 @@ tracker_data_replay_journal (GHashTable          *classes,
 			tracker_db_statement_bind_int (stmt, 0, id);
 			tracker_db_statement_bind_text (stmt, 1, uri);
 			tracker_db_statement_execute (stmt, &new_error);
+			g_object_unref (stmt);
 
 			if (new_error) {
 				g_warning ("Journal replay error: '%s'", new_error->message);



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