mirror of https://github.com/GNOME/gimp.git
app: fix gimp_parallel_run_async() cancelation
In gimp_parallel_run_async(), when aborting a GimpAsync operation in reponse to its "cancel" signal, properly clean up internal data attached to the object, to avoid use-after-free if the signal is emitted again.
This commit is contained in:
parent
ad8add6808
commit
3fa4c01bcf
|
@ -489,6 +489,9 @@ gimp_parallel_run_async_cancel (GimpAsync *async)
|
|||
|
||||
if (link)
|
||||
{
|
||||
g_object_set_data (G_OBJECT (async),
|
||||
"gimp-parallel-run-async-link", NULL);
|
||||
|
||||
g_slice_free (GimpParallelRunAsyncTask, link->data);
|
||||
|
||||
g_queue_delete_link (&gimp_parallel_run_async_queue, link);
|
||||
|
|
Loading…
Reference in New Issue