[tracker] libtracker-data: Fix field name string leak in deletes



commit 0182a8804afabe21e1120f83a1d126c952a91d78
Author: Jürg Billeter <j bitron ch>
Date:   Thu Mar 18 11:11:11 2010 +0100

    libtracker-data: Fix field name string leak in deletes

 src/libtracker-data/tracker-data-update.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 9c308e1..bd72c07 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -364,7 +364,7 @@ cache_delete_value (const gchar            *table_name,
 	TrackerDataUpdateBufferTable    *table;
 	TrackerDataUpdateBufferProperty  property;
 
-	property.name = g_strdup (field_name);
+	property.name = field_name;
 	property.value = *value;
 	property.graph = 0;
 	property.fts = fts;



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