fix memory leak

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

svn path=/trunk/; revision=27566
This commit is contained in:
Nils Philippsen 2008-11-06 15:56:58 +00:00
parent a2f35f0454
commit 0800b7e3e9
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2008-11-06 Nils Philippsen <nils@redhat.com>
* plug-ins/file-jpeg/jpeg-save.c: fix memory leak
2008-11-06 Sven Neumann <sven@sven>
* libgimpconfig/gimpconfigwriter.c (gimp_config_writer_linefeed):

View file

@ -194,12 +194,14 @@ background_jpeg_save (PreviewPersistent *pp)
{
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);