]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/gauge.cpp
Use wxScopedCharBuffer in To8BitData() in ANSI build too.
[wxWidgets.git] / samples / widgets / gauge.cpp
index 6daef590da17d2b6847b4f28c3f6924d02201dbf..4ac549366d9e30ebf8f3750e4429aa93a2a2f45e 100644 (file)
@@ -335,8 +335,7 @@ void GaugeWidgetsPage::StopTimer(wxButton *clicked)
     wxCHECK_RET( m_timer, wxT("shouldn't be called") );
 
     m_timer->Stop();
-    delete m_timer;
-    m_timer = NULL;
+    wxDELETE(m_timer);
 
     if (clicked->GetId() == GaugePage_Progress)
     {