mirror of https://github.com/GNOME/gimp.git
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:
parent
3a0a400ad1
commit
410ff342bc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue