delete manually allocated UnitManager and FogOfWar
This commit is contained in:
parent
de85036ab5
commit
a6416559d2
1 changed files with 7 additions and 0 deletions
|
@ -413,6 +413,13 @@ void Exit(int err)
|
|||
DeInitVideo();
|
||||
DeInitImageLoaders();
|
||||
|
||||
if (UnitManager) {
|
||||
delete UnitManager;
|
||||
}
|
||||
if (FogOfWar) {
|
||||
delete FogOfWar;
|
||||
}
|
||||
|
||||
fprintf(stdout, "%s", _("Thanks for playing Stratagus.\n"));
|
||||
exit(err);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue