[tracker] libtracker-data: Fix memory leak in cursor_next_async



commit 4fa4a164ddb501beba8ccaf621e93e158d08fd82
Author: Jürg Billeter <j bitron ch>
Date:   Wed Dec 22 16:19:12 2010 +0100

    libtracker-data: Fix memory leak in cursor_next_async
    
    Fixes NB#214478.

 src/libtracker-data/tracker-db-interface-sqlite.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c b/src/libtracker-data/tracker-db-interface-sqlite.c
index 9e063d7..c446cad 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -1367,6 +1367,7 @@ tracker_db_cursor_iter_next_async (TrackerDBCursor     *cursor,
 
 	res = g_simple_async_result_new (G_OBJECT (cursor), callback, user_data, tracker_db_cursor_iter_next_async);
 	g_simple_async_result_run_in_thread (res, tracker_db_cursor_iter_next_thread, 0, cancellable);
+	g_object_unref (res);
 }
 
 static gboolean



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