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.
This commit is contained in:
parent
e06a18b944
commit
12df7960ad
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue