mirror of https://github.com/odrling/Aegisub
Call TestDestroy() to ensure we can delete the FontsCollectorThread, fixes #561
Originally committed to SVN as r2949.
This commit is contained in:
parent
5717f81ef2
commit
f1bfb947cf
|
@ -378,7 +378,7 @@ wxThread::ExitCode FontsCollectorThread::Entry() {
|
|||
collector->Update();
|
||||
|
||||
// Return
|
||||
if (IsDetached()) Delete();
|
||||
if (IsDetached() && TestDestroy()) Delete();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue