[tracker/tracker-0.6] Plug some leaks.



commit d4b3d9dd94d5bdf09b7d8581f0be70c484d9c11c
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri May 29 17:25:44 2009 +0200

    Plug some leaks.
---
 src/tracker-extract/tracker-extract-jpeg.c |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/tracker-extract/tracker-extract-jpeg.c b/src/tracker-extract/tracker-extract-jpeg.c
index fd195ee..76ab808 100644
--- a/src/tracker-extract/tracker-extract-jpeg.c
+++ b/src/tracker-extract/tracker-extract-jpeg.c
@@ -134,7 +134,10 @@ static TagType tags[] = {
 #ifdef HAVE_LIBEXIF
 
 static void
-metadata_append (GHashTable *metadata, gchar *key, gchar *value, gboolean append)
+metadata_append (GHashTable  *metadata,
+		 const gchar *key,
+		 const gchar *value,
+		 gboolean     append)
 {
 	gchar   *new_value;
 	gchar   *orig;
@@ -311,14 +314,14 @@ read_exif (const unsigned char *buffer,
 				str = (*p->post) (buffer);
 
 				metadata_append (metadata,
-						 g_strdup (p->name),
-						 tracker_escape_metadata (str),
+						 p->name,
+						 str,
 						 p->multi);
 				g_free (str);
 			} else {
 				metadata_append (metadata,
-						 g_strdup (p->name),
-						 tracker_escape_metadata (buffer),
+						 p->name,
+						 buffer,
 						 p->multi);
 			}
 		}



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