tracker r3143 - in trunk: . src/libtracker-data



Author: carlosg
Date: Fri Mar 27 14:08:30 2009
New Revision: 3143
URL: http://svn.gnome.org/viewvc/tracker?rev=3143&view=rev

Log:
2009-03-27  Carlos Garnacho  <carlos imendio com>

        * src/libtracker-data/tracker-data-query.c (result_set_to_metadata):
        Do not leak GValues contents.

Modified:
   trunk/ChangeLog
   trunk/src/libtracker-data/tracker-data-query.c

Modified: trunk/src/libtracker-data/tracker-data-query.c
==============================================================================
--- trunk/src/libtracker-data/tracker-data-query.c	(original)
+++ trunk/src/libtracker-data/tracker-data-query.c	Fri Mar 27 14:08:30 2009
@@ -460,10 +460,13 @@
 				g_free (str);
 				str = g_strdup ("");
 			}
+
+			g_value_unset (&transform);
 		} else {
 			str = g_strdup ("");
 		}
 
+		g_value_unset (&value);
 		field = tracker_ontology_get_field_by_id (metadata_id);
 		if (!field) {
 			g_critical ("Field id %d in database but not in tracker-ontology",



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