]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/glcanvas.cpp
Exit on frame delete is now initialized and handled in AppBase.
[wxWidgets.git] / src / mac / carbon / glcanvas.cpp
index 62d9c307c44a67542b3859f67957d993cb0f1fbe..16e47d4c79ad0685a24ecca6adb156e8360775da 100644 (file)
@@ -141,8 +141,10 @@ wxGLCanvas::wxGLCanvas( wxWindow *parent, const wxGLCanvas *shared, wxWindowID i
 
 wxGLCanvas::~wxGLCanvas()
 {
-  if (m_glContext)
-    delete m_glContext;
+    if (m_glContext != NULL) {
+        delete m_glContext;
+        m_glContext = NULL;
+    }
 }
 
 static AGLPixelFormat ChoosePixelFormat(const int *attribList)