]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/manager.cpp
Fix wxMSW rendering artifacts with modal dialogs.
[wxWidgets.git] / src / propgrid / manager.cpp
index 0b148c403eab3cce35a26da4ecd73f128a538e7b..30c3f21e8b20cdc376bde255b68bd16c48681500 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     2005-01-14
 // RCS-ID:      $Id$
 // Copyright:   (c) Jaakko Salli
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // For compilers that support precompilation, includes "wx/wx.h".
@@ -623,8 +623,7 @@ wxPropertyGridManager::~wxPropertyGridManager()
     END_MOUSE_CAPTURE
 
     //m_pPropGrid->ClearSelection();
-    delete m_pPropGrid;
-    m_pPropGrid = NULL;
+    wxDELETE(m_pPropGrid);
 
     size_t i;
     for ( i=0; i<m_arrPages.size(); i++ )