gimp r27566 - in trunk: . plug-ins/file-jpeg



Author: nphilipp
Date: Thu Nov  6 15:56:58 2008
New Revision: 27566
URL: http://svn.gnome.org/viewvc/gimp?rev=27566&view=rev

Log:
    * plug-ins/file-jpeg/jpeg-save.c: fix memory leak

Modified:
   trunk/ChangeLog
   trunk/plug-ins/file-jpeg/jpeg-save.c

Modified: trunk/plug-ins/file-jpeg/jpeg-save.c
==============================================================================
--- trunk/plug-ins/file-jpeg/jpeg-save.c	(original)
+++ trunk/plug-ins/file-jpeg/jpeg-save.c	Thu Nov  6 15:56:58 2008
@@ -194,12 +194,14 @@
         {
           struct stat  buf;
           gchar       *text;
+          gchar       *size_text;
 
           g_stat (pp->file_name, &buf);
-          text = g_strdup_printf (_("File size: %s"),
-				  g_format_size_for_display (buf.st_size));
+          size_text = g_format_size_for_display (buf.st_size);
+          text = g_strdup_printf (_("File size: %s"), size_text);
           gtk_label_set_text (GTK_LABEL (preview_size), text);
 	  g_free (text);
+      g_free (size_text);
 
           /* and load the preview */
           load_image (pp->file_name, GIMP_RUN_NONINTERACTIVE, TRUE, NULL);



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