X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b78ffab03098558f47230612015a32a21b338e2e..29188693b3b8ba4b07762df012cc652d421dae79:/src/osx/spinctrl_osx.cpp diff --git a/src/osx/spinctrl_osx.cpp b/src/osx/spinctrl_osx.cpp index 8e7042d10e..a6b733ae0a 100644 --- a/src/osx/spinctrl_osx.cpp +++ b/src/osx/spinctrl_osx.cpp @@ -281,10 +281,8 @@ wxSpinCtrl::~wxSpinCtrl() // delete the controls now, don't leave them alive even though they would // still be eventually deleted by our parent - but it will be too late, the // user code expects them to be gone now - delete m_text; - m_text = NULL ; - delete m_btn; - m_btn = NULL ; + wxDELETE(m_text); + wxDELETE(m_btn); } // ----------------------------------------------------------------------------