forked from mia/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://aegisub.cellosoft.com/latest.txt"));
|
||||||
paths.Add(_T("http://www.malakith.net/amz/aegisub/latest.txt"));
|
paths.Add(_T("http://www.malakith.net/amz/aegisub/latest.txt"));
|
||||||
wxFSFile *fp = NULL;
|
wxFSFile *fp = NULL;
|
||||||
|
|
||||||
// Try each path until it finds one that works
|
// Try each path until it finds one that works
|
||||||
for (unsigned int i=0;i<paths.Count();i++) {
|
for (unsigned int i=0;i<paths.Count();i++) {
|
||||||
// Get path and make sure that it has a handle for it
|
// Get path and make sure that it has a handle for it
|
||||||
|
@ -292,6 +292,5 @@ endThread:
|
||||||
wxMutexGuiLeave();
|
wxMutexGuiLeave();
|
||||||
delete fp;
|
delete fp;
|
||||||
fp = NULL;
|
fp = NULL;
|
||||||
Delete();
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue