mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
fix memory leak
* plug-ins/file-jpeg/jpeg-save.c: fix memory leak svn path=/trunk/; revision=27566
This commit is contained in:
parent
a2f35f0454
commit
0800b7e3e9
|
@ -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):
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue