mirror of https://github.com/GNOME/gimp.git
plug-ins: returned value of gimp_image_get_layers() must be freed.
This commit is contained in:
parent
e1dafd1b63
commit
6b33491ce4
|
@ -1157,7 +1157,7 @@ save_dialog (gint32 image_ID)
|
|||
gboolean animation_supported = FALSE;
|
||||
gboolean run;
|
||||
|
||||
gimp_image_get_layers (image_ID, &nlayers);
|
||||
g_free (gimp_image_get_layers (image_ID, &nlayers));
|
||||
animation_supported = nlayers > 1;
|
||||
|
||||
dialog = gimp_export_dialog_new (_("GIF"), PLUG_IN_BINARY, SAVE_PROC);
|
||||
|
|
Loading…
Reference in New Issue