Issue #13189: free the slice with g_slice_free().

Even though this is mostly the same thing now, it's only true since GLib
2.76, yet our AppImage uses GLib 2.74.6. This explains why the chooser
finalization was crashing plug-ins.
This commit is contained in:
Jehan 2025-05-06 13:01:42 +02:00
parent b56c59c92e
commit cbd013d7b2

View file

@ -141,7 +141,7 @@ gimp_gradient_chooser_finalize (GObject *object)
GimpGradientChooser *self = GIMP_GRADIENT_CHOOSER (object);
g_free (self->local_grad_data->data);
g_free (self->local_grad_data);
g_slice_free (GimpGradientPreviewData, self->local_grad_data);
/* chain up. */
G_OBJECT_CLASS (gimp_gradient_chooser_parent_class)->finalize (object);