X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..bbd55ff9564dcaf1a5d2ee93d789c4d656baabef:/src/os2/toolbar.cpp diff --git a/src/os2/toolbar.cpp b/src/os2/toolbar.cpp index 8ebc9a0f3e..4bfe61fc7e 100644 --- a/src/os2/toolbar.cpp +++ b/src/os2/toolbar.cpp @@ -423,11 +423,7 @@ bool wxToolBar::Create( wxWindow* pParent, wxToolBar::~wxToolBar() { - if (m_pToolTip) - { - delete m_pToolTip; - m_pToolTip = NULL; - } + wxDELETE(m_pToolTip); } // end of wxToolBar::~wxToolBar bool wxToolBar::Realize()