]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/app.cpp
No real changes, just use KF_EXTENDED instead of hard-coded bit mask.
[wxWidgets.git] / src / mgl / app.cpp
index 113516fe7101cf830724af47bc7535c2ab4836de..a62f4ac677e3ce9ee9fc7eee43b2c54ff1cc4363 100644 (file)
@@ -120,8 +120,7 @@ static bool wxCreateMGL_WM(const wxVideoMode& displayMode)
     g_displayDC = new MGLDisplayDC(mode, 1, refresh);
     if ( !g_displayDC->isValid() )
     {
-        delete g_displayDC;
-        g_displayDC = NULL;
+        wxDELETE(g_displayDC);
         return false;
     }
 
@@ -139,11 +138,7 @@ static void wxDestroyMGL_WM()
         MGL_wmDestroy(g_winMng);
         g_winMng = NULL;
     }
-    if ( g_displayDC )
-    {
-        delete g_displayDC;
-        g_displayDC = NULL;
-    }
+    wxDELETE(g_displayDC);
 }
 
 //-----------------------------------------------------------------------------