From 2feb39393dd3bfa6732e8515bee0ad6e1b128fa8 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; }