[GRASS-SVN] r62696 - grass/trunk/gui/wxpython/iclass

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 10 19:54:37 PST 2014


Author: annakrat
Date: 2014-11-10 19:54:37 -0800 (Mon, 10 Nov 2014)
New Revision: 62696

Modified:
   grass/trunk/gui/wxpython/iclass/frame.py
Log:
wxGUI/iclass: better cleanup handling - #2482

Modified: grass/trunk/gui/wxpython/iclass/frame.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/frame.py	2014-11-10 21:57:14 UTC (rev 62695)
+++ grass/trunk/gui/wxpython/iclass/frame.py	2014-11-11 03:54:37 UTC (rev 62696)
@@ -204,10 +204,11 @@
     def OnCloseWindow(self, event):
         self.GetFirstWindow().GetDigit().CloseMap()
         self.plotPanel.CloseWindow()
+        self._cleanup()
 
         self.Destroy()
-        
-    def __del__(self):
+
+    def _cleanup(self):
         """Frees C structs and removes vector map and all raster maps."""
         I_free_signatures(self.signatures)
         I_free_group_ref(self.refer)



More information about the grass-commit mailing list