Call wxThread::OnExit() from wxThread::Exit() in wxMSW too.

Exit() is documented to call OnExit() and the pthreads version of wxThread did
behave as documented, so make wxMSW follow it as well and explicitly call
OnExit() before exiting the thread.

Closes #14212.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2012-04-14 22:37:34 +00:00
parent 4b666be659
commit 66180c31f6

View File

@ -1173,6 +1173,8 @@ wxThreadError wxThread::Kill()
void wxThread::Exit(ExitCode status)
{
wxThreadInternal::DoThreadOnExit(this);
m_internal->Free();
if ( IsDetached() )