Commit 823ae50c authored by Jehan's avatar Jehan

plug-ins: fix crash at end of JPEG export.

Not sure why we didn't see the crash earlier and it suddenly shows up
now. Anyway we must delete the exported image **after** calling
gimp_procedure_config_end_export() on it, obviously.
parent 07a3734d
Pipeline #247924 passed with stages
in 67 minutes and 10 seconds
......@@ -608,6 +608,15 @@ jpeg_save (GimpProcedure *procedure,
}
}
if (status == GIMP_PDB_SUCCESS)
{
if (metadata)
gimp_metadata_set_bits_per_sample (metadata, 8);
}
gimp_procedure_config_end_export (config, image, file, status);
g_object_unref (config);
if (export == GIMP_EXPORT_EXPORT)
{
/* If the image was exported, delete the new display. This also
......@@ -621,15 +630,6 @@ jpeg_save (GimpProcedure *procedure,
g_free (drawables);
}
if (status == GIMP_PDB_SUCCESS)
{
if (metadata)
gimp_metadata_set_bits_per_sample (metadata, 8);
}
gimp_procedure_config_end_export (config, image, file, status);
g_object_unref (config);
return gimp_procedure_new_return_values (procedure, status, error);
}
......
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