]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_app_ex.py
Fix previous change in case somebody is still using
[wxWidgets.git] / wxPython / src / _app_ex.py
index bae7df624e75cdf8622922e7b089a94804229945..98b35efc212a94eec07311750638d9c861e384f3 100644 (file)
@@ -176,9 +176,12 @@ your Mac."""
     def __del__(self):
         try:
             self.RestoreStdio()  # Just in case the MainLoop was overridden
-        except:
-            pass
+        finally:
+            wx.PyApp.__del__(self)
 
+    def Destroy(self):
+        wx.PyApp.Destroy(self)
+        self.thisown = 0
 
     def SetTopWindow(self, frame):
         """Set the \"main\" top level window"""