From 6a251fca160b7beb07f1f85a7ac54c9a5f0a5f90 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 2 Mar 2019 23:21:41 +0000 Subject: [PATCH] Free inthash tables used by the CON compiler using the contents of inttables[] instead of listing them explicitly in C_Compile() git-svn-id: https://svn.eduke32.com/eduke32@7371 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/gamedef.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/duke3d/src/gamedef.cpp b/source/duke3d/src/gamedef.cpp index 90799e4ce..f06a30ee7 100644 --- a/source/duke3d/src/gamedef.cpp +++ b/source/duke3d/src/gamedef.cpp @@ -6300,12 +6300,8 @@ void C_Compile(const char *fileName) for (auto i : tables_free) hash_free(i); - inthash_free(&h_varvar); - inthash_free(&h_globalvar); -#ifdef INCOMPLETE_STRUCT_ACCESS - inthash_free(&h_playervar); - inthash_free(&h_actorvar); -#endif + for (auto i : inttables) + inthash_free(i); freehashnames(); freesoundhashnames();