X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4eb5a0ec0421b3dba1c46c1dcb27a711af4bec36..29188693b3b8ba4b07762df012cc652d421dae79:/src/osx/carbon/combobxc.cpp diff --git a/src/osx/carbon/combobxc.cpp b/src/osx/carbon/combobxc.cpp index 16ac22ad1d..b568c23c89 100644 --- a/src/osx/carbon/combobxc.cpp +++ b/src/osx/carbon/combobxc.cpp @@ -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;