From 6ecb219c4f41067fdd8ed76879da15ddd3496f54 Mon Sep 17 00:00:00 2001 From: Alexia Death Date: Thu, 2 Sep 2010 20:11:34 +0300 Subject: [PATCH] Fix a preview update related segfault --- app/tools/gimpcagetool.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c index e2f6597dd1..d203603c27 100644 --- a/app/tools/gimpcagetool.c +++ b/app/tools/gimpcagetool.c @@ -250,6 +250,12 @@ gimp_cage_tool_halt (GimpCageTool *ct) if (ct->image_map) { + + if (ct->idle_id > 0) + { + g_source_remove(ct->idle_id); + ct->idle_id = 0; + } gimp_tool_control_set_preserve (tool->control, TRUE); gimp_image_map_abort (ct->image_map);