[GRASS-SVN] r41099 - grass/branches/develbranch_6/gui/tcltk/gis.m

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Feb 18 15:06:37 EST 2010


Author: marisn
Date: 2010-02-18 15:06:36 -0500 (Thu, 18 Feb 2010)
New Revision: 41099

Modified:
   grass/branches/develbranch_6/gui/tcltk/gis.m/gm.tcl
Log:
gis.m It's not a good idea to call exit in Destroy binding. Fixes segfaults during gis.m exit. Thanks to jenglish from #tcl

Modified: grass/branches/develbranch_6/gui/tcltk/gis.m/gm.tcl
===================================================================
--- grass/branches/develbranch_6/gui/tcltk/gis.m/gm.tcl	2010-02-18 18:46:52 UTC (rev 41098)
+++ grass/branches/develbranch_6/gui/tcltk/gis.m/gm.tcl	2010-02-18 20:06:36 UTC (rev 41099)
@@ -547,7 +547,8 @@
 		}
 	}
 
-	exit
+	# It's unsafe to call exit during Destroy event
+	after idle [list destroy .]
 }
 
 ###############################################################################



More information about the grass-commit mailing list