mirror of https://github.com/GNOME/gimp.git
app: don't crash on a dangling image_map_tool->active_picker pointer
gimp_operation_tool_set_operation(): set it to NULL when destroying the previous operation's options_table (if it was non-NULL it was a widget from that table).
This commit is contained in:
parent
0a2b86e534
commit
814c47b0b9
|
@ -312,6 +312,8 @@ gimp_operation_tool_set_operation (GimpOperationTool *tool,
|
|||
{
|
||||
gtk_widget_destroy (tool->options_table);
|
||||
tool->options_table = NULL;
|
||||
|
||||
GIMP_IMAGE_MAP_TOOL (tool)->active_picker = NULL;
|
||||
}
|
||||
|
||||
if (tool->config)
|
||||
|
|
Loading…
Reference in New Issue