From cbd013d7b274e756b5e2d35e7c09a9f7e4834f2a Mon Sep 17 00:00:00 2001 From: Jehan Date: Tue, 6 May 2025 13:01:42 +0200 Subject: [PATCH] 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. --- libgimp/gimpgradientchooser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgimp/gimpgradientchooser.c b/libgimp/gimpgradientchooser.c index cd0d267de6..fbb2a468d5 100644 --- a/libgimp/gimpgradientchooser.c +++ b/libgimp/gimpgradientchooser.c @@ -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);