libgimp: fix double free crash.

gimp_procedure_new_return_values() takes ownership of the passed GError (it
allows, among other things, to call it directly as return value). So we must not
try and free it afterwards.
This commit is contained in:
Jehan 2023-10-20 18:49:31 +02:00
parent 3a0a400ad1
commit 410ff342bc
1 changed files with 0 additions and 3 deletions

View File

@ -1981,8 +1981,6 @@ _gimp_procedure_run_array (GimpProcedure *procedure,
return_vals = gimp_procedure_new_return_values (procedure,
GIMP_PDB_CALLING_ERROR,
error);
g_clear_error (&error);
return return_vals;
}
@ -2055,7 +2053,6 @@ _gimp_procedure_run_array (GimpProcedure *procedure,
return_vals = gimp_procedure_new_return_values (procedure,
GIMP_PDB_EXECUTION_ERROR,
error);
g_clear_error (&error);
}
return return_vals;