Fix huge memory leak with savemapstate

git-svn-id: https://svn.eduke32.com/eduke32@6536 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-12-02 08:45:09 +00:00
parent 6231c0bdf5
commit 9e9f4168af

View file

@ -1436,7 +1436,7 @@ end_vol4a:
Gv_ResetSystemDefaults(); Gv_ResetSystemDefaults();
for (bssize_t i=0; i<(MAXVOLUMES*MAXLEVELS); i++) for (bssize_t i=0; i<(MAXVOLUMES*MAXLEVELS); i++)
ALIGNED_FREE_AND_NULL(g_mapInfo[i].savedstate); G_FreeMapState(i);
if (ud.m_coop != 1) if (ud.m_coop != 1)
{ {