From 12df7960ad461d3c4e6fe7fab01ce2db7eacd150 Mon Sep 17 00:00:00 2001 From: Jehan Date: Wed, 4 Oct 2017 23:25:08 +0200 Subject: [PATCH] Bug 788442 - Gimp crashes not using GEGL Operation tool. Properly set the pointer as a weak pointer, same as in GimpOperationTool parent class, to make sure it is resetted to NULL upon destruction. --- app/tools/gimpgegltool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c index f79ec415ce..747767c2a6 100644 --- a/app/tools/gimpgegltool.c +++ b/app/tools/gimpgegltool.c @@ -476,6 +476,8 @@ gimp_gegl_tool_dialog (GimpFilterTool *filter_tool) /* The options vbox */ o_tool->options_gui = gtk_label_new (_("Select an operation from the list above")); + g_object_add_weak_pointer (G_OBJECT (o_tool->options_gui), + (gpointer) &o_tool->options_gui); gimp_label_set_attributes (GTK_LABEL (o_tool->options_gui), PANGO_ATTR_STYLE, PANGO_STYLE_ITALIC, -1);