reduced memory leaks
This commit is contained in:
parent
cc488fea3d
commit
8df8a66267
2 changed files with 5 additions and 0 deletions
|
@ -277,6 +277,10 @@ global void CreateGame(char* filename, WorldMap* map)
|
|||
return;
|
||||
}
|
||||
|
||||
LoadCcl();
|
||||
LoadFonts();
|
||||
InitVideoCursors();
|
||||
|
||||
if( filename ) {
|
||||
s = NULL;
|
||||
// FIXME: LibraryFile here?
|
||||
|
|
|
@ -1118,6 +1118,7 @@ global void MenuLoop(char* filename, WorldMap* map)
|
|||
//
|
||||
// Create the game.
|
||||
//
|
||||
CleanModules();
|
||||
CreateGame(filename,map);
|
||||
|
||||
SetStatusLine(NameLine);
|
||||
|
|
Loading…
Reference in a new issue