plug-ins: Fix double free crash in file-heif

Resolves #11980
In 443947c6, the now unnecessary g_free (drawables) was
removed from heif_av1_export (). However, it was accidentally
left in heif_export (). This patch removes it to prevent a crash
from double freeing the drawables list.
This commit is contained in:
Alx Sa 2024-08-31 19:27:23 +00:00
parent 8beba7f5fc
commit cfcdb1e7bf
1 changed files with 1 additions and 4 deletions

View File

@ -557,10 +557,7 @@ heif_export (GimpProcedure *procedure,
}
if (export == GIMP_EXPORT_EXPORT)
{
gimp_image_delete (image);
g_free (drawables);
}
gimp_image_delete (image);
g_list_free (drawables);
return gimp_procedure_new_return_values (procedure, status, error);