Commit 893990af authored by Ell's avatar Ell

Issue #4584 - Segfault when closing an image with a layer group ...

... containing a floating selection

When destroying a GimpGroupLayer, remove all the children signal
handlers before destroying the container, so that we don't attempt
to reallocate the group's projection in response to
"update-bounding-box" signals emitted during layer destruction,
which can happen for floating selections.
parent 0891f127
Pipeline #150154 passed with stages
in 28 minutes and 59 seconds
......@@ -400,6 +400,12 @@ gimp_group_layer_finalize (GObject *object)
/* this is particularly important to avoid reallocating the projection
* in response to a "bounding-box-changed" signal, which can be emitted
* during layer destruction. see issue #4584.
gimp_container_remove_handlers_by_data (private->children, object);
g_clear_object (&private->children);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment