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 5717f81ef2
commit f1bfb947cf
1 changed files with 1 additions and 1 deletions

View File

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