mirror of https://github.com/odrling/Aegisub
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:
parent
d41f87ba29
commit
a2c1f17939
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue