[gimp/soc-2010-cage-2: 49/50] Fix a preview update related segfault



commit 6ecb219c4f41067fdd8ed76879da15ddd3496f54
Author: Alexia Death <alexiadeath gmail com>
Date:   Thu Sep 2 20:11:34 2010 +0300

    Fix a preview update related segfault

 app/tools/gimpcagetool.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index e2f6597..d203603 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]