- fixed: The intermission data was never freed.

SVN r2955 (trunk)
This commit is contained in:
Christoph Oelckers 2010-10-17 13:25:21 +00:00
commit f318653a11
3 changed files with 30 additions and 2 deletions

View file

@ -1787,6 +1787,20 @@ void FMapInfoParser::ParseMapInfo (int lump, level_info_t &gamedefaults, level_i
}
//==========================================================================
//
//
//
//==========================================================================
void DeinitIntermissions();
static void ClearMapinfo()
{
ClearEpisodes();
DeinitIntermissions();
}
//==========================================================================
//
// G_ParseMapInfo
@ -1800,7 +1814,7 @@ void G_ParseMapInfo (const char *basemapinfo)
int lump, lastlump = 0;
level_info_t gamedefaults;
atterm(ClearEpisodes);
atterm(ClearMapinfo);
// Parse the default MAPINFO for the current game. This lump *MUST* come from zdoom.pk3.
if (basemapinfo != NULL)