plug-ins: returned value of gimp_image_get_layers() must be freed.

This commit is contained in:
Jehan 2015-09-04 18:24:21 +02:00
parent e1dafd1b63
commit 6b33491ce4
1 changed files with 1 additions and 1 deletions

View File

@ -1157,7 +1157,7 @@ save_dialog (gint32 image_ID)
gboolean animation_supported = FALSE; gboolean animation_supported = FALSE;
gboolean run; gboolean run;
gimp_image_get_layers (image_ID, &nlayers); g_free (gimp_image_get_layers (image_ID, &nlayers));
animation_supported = nlayers > 1; animation_supported = nlayers > 1;
dialog = gimp_export_dialog_new (_("GIF"), PLUG_IN_BINARY, SAVE_PROC); dialog = gimp_export_dialog_new (_("GIF"), PLUG_IN_BINARY, SAVE_PROC);