[GRASS-SVN] r63664 - grass/branches/releasebranch_7_0/gui/wxpython/iclass

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 21 19:24:48 PST 2014


Author: annakrat
Date: 2014-12-21 19:24:48 -0800 (Sun, 21 Dec 2014)
New Revision: 63664

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/iclass/frame.py
Log:
wxGUI/iclass: better cleanup handling - #2482 (merge from trunk, r62696)

Modified: grass/branches/releasebranch_7_0/gui/wxpython/iclass/frame.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/iclass/frame.py	2014-12-22 03:18:53 UTC (rev 63663)
+++ grass/branches/releasebranch_7_0/gui/wxpython/iclass/frame.py	2014-12-22 03:24:48 UTC (rev 63664)
@@ -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