]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxOGL.py
added support for polygons to wxRegion
[wxWidgets.git] / wxPython / demo / wxOGL.py
index 63501224ae3e821926fa7ec5a5d8cb4c22d5dc3a..a13bee893a23472682d7dbcd7aedbe77094d1461 100644 (file)
@@ -193,6 +193,7 @@ class TestWindow(wxShapeCanvas):
             if shape.GetParent() == None:
                 shape.SetCanvas(None)
                 shape.Destroy()
             if shape.GetParent() == None:
                 shape.SetCanvas(None)
                 shape.Destroy()
+        self.diagram.Destroy()
 
 
 #----------------------------------------------------------------------
 
 
 #----------------------------------------------------------------------