Commit 6b33491c authored by Jehan's avatar Jehan
Browse files

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

parent e1dafd1b
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment