nautilus r14726 - in trunk: . src



Author: chpe
Date: Mon Oct 13 12:49:19 2008
New Revision: 14726
URL: http://svn.gnome.org/viewvc/nautilus?rev=14726&view=rev

Log:
	* src/nautilus-image-properties-page.c: Plug a mem leak. Bug #552691.

Modified:
   trunk/ChangeLog
   trunk/src/nautilus-image-properties-page.c

Modified: trunk/src/nautilus-image-properties-page.c
==============================================================================
--- trunk/src/nautilus-image-properties-page.c	(original)
+++ trunk/src/nautilus-image-properties-page.c	Mon Oct 13 12:49:19 2008
@@ -324,6 +324,10 @@
 	GString *str;
 
 	if (page->details->got_size) {
+#ifdef HAVE_EXIF
+                ExifData *exif_data;
+#endif
+
 		str = g_string_new (NULL);
 		format = gdk_pixbuf_loader_get_format (page->details->loader);
 	
@@ -343,7 +347,9 @@
 		g_free (desc);
 		
 #ifdef HAVE_EXIF
-		append_exifdata_string (exif_loader_get_data (page->details->exifldr), str);
+		exif_data = exif_loader_get_data (page->details->exifldr);
+                append_exifdata_string (exif_data, str);
+                exif_data_unref (exif_data);
 #endif /*HAVE_EXIF*/
 #ifdef HAVE_EXEMPI
 		append_xmpdata_string(page->details->xmp, str);



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