[tracker/class-signal: 30/61] tracker-writeback: Fix memory leak in taglib writeback module



commit 959f5c954ac1584abe15391f08794dddb61a20f7
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Aug 23 17:58:43 2010 +0200

    tracker-writeback: Fix memory leak in taglib writeback module

 src/tracker-writeback/tracker-writeback-taglib.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-writeback/tracker-writeback-taglib.c b/src/tracker-writeback/tracker-writeback-taglib.c
index 6dd4077..881d32b 100644
--- a/src/tracker-writeback/tracker-writeback-taglib.c
+++ b/src/tracker-writeback/tracker-writeback-taglib.c
@@ -231,6 +231,8 @@ writeback_taglib_get_from_query (TrackerSparqlConnection *connection,
 		value = g_strdup (tracker_sparql_cursor_get_string (cursor, 0));
 	}
 
+	g_object_unref (cursor);
+
 	return value;
 }
 



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