diff src/exif.c @ 58:df73b94154e4

Sat Jun 11 01:06:49 2005 John Ellis <johne@verizon.net> * exif.c, format_nikon.c, format_olympus.c: Fix memory leaks, exif_text_list_find_value() will always return newly allocated text.
author gqview
date Sat, 11 Jun 2005 05:11:39 +0000
parents a8c9992320f4
children 04ff0df3ad2f
line wrap: on
line diff
--- a/src/exif.c	Sat Jun 11 01:09:30 2005 +0000
+++ b/src/exif.c	Sat Jun 11 05:11:39 2005 +0000
@@ -1493,7 +1493,7 @@
 		if (!exif_get_integer(exif, "Flash", &n)) return NULL;
 
 		/* Exif 2.1 only defines first 3 bits */
-		if (n <= 0x07) return g_strdup(exif_text_list_find_value(ExifFlashList, n));
+		if (n <= 0x07) return exif_text_list_find_value(ExifFlashList, n);
 
 		/* must be Exif 2.2 */
 		string = g_string_new("");