]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/combobxc.cpp
bracketing msw enhanced metafile usage
[wxWidgets.git] / src / osx / carbon / combobxc.cpp
index 16ac22ad1de153130b9b897ce8f649d1c5a756de..b568c23c89a2882ff330f1c743148eadbf6b60dc 100644 (file)
@@ -478,10 +478,9 @@ void wxComboBox::SetEditable(bool editable)
     {
         m_text = new wxComboBoxText( this );
     }
-    else if ( ( m_text != NULL ) && !editable )
+    else if ( !editable )
     {
-        delete m_text;
-        m_text = NULL;
+        wxDELETE(m_text);
     }
 
     int currentX, currentY;