mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-04 02:06:12 +01:00
(svn r26097) -Fix: another minor memory leak (when pressing cancel in the bootstrap window)
This commit is contained in:
parent
0460b78515
commit
ee0aa389a8
@ -799,7 +799,9 @@ int openttd_main(int argc, char *argv[])
|
|||||||
#endif /* ENABLE_NETWORK */
|
#endif /* ENABLE_NETWORK */
|
||||||
|
|
||||||
if (!HandleBootstrap()) {
|
if (!HandleBootstrap()) {
|
||||||
|
delete scanner;
|
||||||
ShutdownGame();
|
ShutdownGame();
|
||||||
|
|
||||||
goto exit_bootstrap;
|
goto exit_bootstrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -863,6 +865,7 @@ int openttd_main(int argc, char *argv[])
|
|||||||
|
|
||||||
CheckForMissingGlyphs();
|
CheckForMissingGlyphs();
|
||||||
|
|
||||||
|
/* ScanNewGRFFiles now has control over the scanner. */
|
||||||
ScanNewGRFFiles(scanner);
|
ScanNewGRFFiles(scanner);
|
||||||
|
|
||||||
_video_driver->MainLoop();
|
_video_driver->MainLoop();
|
||||||
|
Loading…
Reference in New Issue
Block a user