]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/toolbar/toolbar.cpp
move console sample's interactive tests to two different CppUnit testsuites: Interact...
[wxWidgets.git] / samples / toolbar / toolbar.cpp
index 7e5558a1b35d144f0cc58423b1e048f84e00bd6d..106e9622b8589f2b8201a7e654b77fbadbde6a2c 100644 (file)
@@ -725,8 +725,7 @@ void MyFrame::OnToggleAnotherToolbar(wxCommandEvent& WXUNUSED(event))
 {
     if ( m_tbar )
     {
-        delete m_tbar;
-        m_tbar = NULL;
+        wxDELETE(m_tbar);
     }
     else
     {