]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/thread.cpp
simplify code so it always returns the same object
[wxWidgets.git] / src / msw / thread.cpp
index 3aaeb7d0f3f0b15d494965604d31ad1eb972a13c..7213f4dc8e66d5333994c6494d6f92148ab87878 100644 (file)
@@ -1173,6 +1173,8 @@ wxThreadError wxThread::Kill()
 
 void wxThread::Exit(ExitCode status)
 {
+    wxThreadInternal::DoThreadOnExit(this);
+
     m_internal->Free();
 
     if ( IsDetached() )