delete manually allocated UnitManager and FogOfWar

This commit is contained in:
Tim Felgentreff 2022-06-15 23:54:08 +02:00
parent de85036ab5
commit a6416559d2

View file

@ -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);
}