From 9e9f4168afa00254ecf52827af6cdeeb26ced9d8 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 2 Dec 2017 08:45:09 +0000 Subject: [PATCH] Fix huge memory leak with savemapstate git-svn-id: https://svn.eduke32.com/eduke32@6536 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/premap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/premap.cpp b/source/duke3d/src/premap.cpp index 0a48cb6e0..cfaf4c305 100644 --- a/source/duke3d/src/premap.cpp +++ b/source/duke3d/src/premap.cpp @@ -1436,7 +1436,7 @@ end_vol4a: Gv_ResetSystemDefaults(); 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) {