Commit 04d7e139 authored by David Odin's avatar David Odin
Browse files

bloc some signals before destroying the info dialog box, to prevent

* app/tools/gimpcroptool.c: bloc some signals before destroying the
info dialog box, to prevent accessing to freed memory fixes bug #131680
parent ddbc0908
2004-01-15 DindinX <david@dindinx.org>
* app/tools/gimpcroptool.c: bloc some signals before destroying the
info dialog box, to prevent accessing to freed memory
fixes bug #131680
2004-01-16 Sven Neumann <sven@gimp.org>
 
* app/gui/menus.c (menus_init): fixed typo (bug #131670).
......@@ -1066,6 +1066,12 @@ crop_response (GtkWidget *widget,
tool = GIMP_TOOL (crop);
options = GIMP_CROP_OPTIONS (tool->tool_info->tool_options);
g_signal_handlers_block_by_func (crop->origin_sizeentry,
crop_origin_changed,
crop);
g_signal_handlers_block_by_func (crop->size_sizeentry,
crop_size_changed,
crop);
switch (response_id)
{
case GIMP_CROP_MODE_CROP:
......@@ -1081,15 +1087,15 @@ crop_response (GtkWidget *widget,
break;
}
if (crop->crop_info)
info_dialog_popdown (crop->crop_info);
if (gimp_draw_tool_is_active (GIMP_DRAW_TOOL (crop)))
gimp_draw_tool_stop (GIMP_DRAW_TOOL (crop));
if (gimp_tool_control_is_active (GIMP_TOOL (crop)->control))
gimp_tool_control_halt (GIMP_TOOL (crop)->control);
if (crop->crop_info)
info_dialog_popdown (crop->crop_info);
tool->gdisp = NULL;
tool->drawable = NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment