Version check thread should not attempt to delete itself. (It's not allowed, and detached threads self-delete anyway.)

Originally committed to SVN as r1585.
This commit is contained in:
Niels Martin Hansen 2007-09-24 01:09:32 +00:00
parent d41f87ba29
commit a2c1f17939
1 changed files with 1 additions and 2 deletions

View File

@ -163,7 +163,7 @@ wxThread::ExitCode VersionCheckThread::Entry() {
paths.Add(_T("http://aegisub.cellosoft.com/latest.txt"));
paths.Add(_T("http://www.malakith.net/amz/aegisub/latest.txt"));
wxFSFile *fp = NULL;
// Try each path until it finds one that works
for (unsigned int i=0;i<paths.Count();i++) {
// Get path and make sure that it has a handle for it
@ -292,6 +292,5 @@ endThread:
wxMutexGuiLeave();
delete fp;
fp = NULL;
Delete();
return 0;
}