Call TestDestroy() to ensure we can delete the FontsCollectorThread, fixes #561

Originally committed to SVN as r2949.
This commit is contained in:
harukalover 2009-05-18 05:24:07 +00:00
parent ea8841932b
commit 2feb39393d

View file

@ -378,7 +378,7 @@ wxThread::ExitCode FontsCollectorThread::Entry() {
collector->Update();
// Return
if (IsDetached()) Delete();
if (IsDetached() && TestDestroy()) Delete();
return 0;
}