]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/thread.cpp
Document wxTE_MULTILINE support in wxTextEntryDialog.
[wxWidgets.git] / src / msw / thread.cpp
index 1a668976f3f4d9597fbf527c15af06b6ae9de154..30f9bca117df89ad09d8181a7268097b10177199 100644 (file)
@@ -761,7 +761,8 @@ wxThreadInternal::WaitForTerminate(wxCriticalSection& cs,
         Cancel();
     }
 
-    threadToDelete->OnDelete();
+    if ( threadToDelete )
+        threadToDelete->OnDelete();
 
     // now wait for thread to finish
     if ( wxThread::IsMain() )