diff --git a/samples/thread/thread.cpp b/samples/thread/thread.cpp index d239920382..6772a0bbec 100644 --- a/samples/thread/thread.cpp +++ b/samples/thread/thread.cpp @@ -726,6 +726,7 @@ void MyFrame::OnStartWorker(wxCommandEvent& WXUNUSED(event)) if ( thread->Create() != wxTHREAD_NO_ERROR ) { wxLogError(wxT("Can't create thread!")); + return; } m_dlgProgress = new wxProgressDialog