From f1bfb947cf68724f761acf95a2986f50ac489b46 Mon Sep 17 00:00:00 2001 From: harukalover Date: Mon, 18 May 2009 05:24:07 +0000 Subject: [PATCH] Call TestDestroy() to ensure we can delete the FontsCollectorThread, fixes #561 Originally committed to SVN as r2949. --- aegisub/src/dialog_fonts_collector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/dialog_fonts_collector.cpp b/aegisub/src/dialog_fonts_collector.cpp index 099722116..9cffdeb7c 100644 --- a/aegisub/src/dialog_fonts_collector.cpp +++ b/aegisub/src/dialog_fonts_collector.cpp @@ -378,7 +378,7 @@ wxThread::ExitCode FontsCollectorThread::Entry() { collector->Update(); // Return - if (IsDetached()) Delete(); + if (IsDetached() && TestDestroy()) Delete(); return 0; }