From b1a8707fb2a8b50a6c99618819e51c4928a8d566 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Thu, 15 Sep 2022 17:45:35 +0300 Subject: [PATCH] Review isoExit --- src/map.cc | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/map.cc b/src/map.cc index 54f91ab..85a1f27 100644 --- a/src/map.cc +++ b/src/map.cc @@ -256,17 +256,13 @@ void isoExit() tileExit(); artExit(); - if (gMapGlobalVars != NULL) { - internal_free(gMapGlobalVars); - gMapGlobalVars = NULL; - gMapGlobalVarsLength = 0; - } + windowDestroy(gIsoWindow); - if (gMapLocalVars != NULL) { - internal_free(gMapLocalVars); - gMapLocalVars = NULL; - gMapLocalVarsLength = 0; - } + // NOTE: Uninline. + mapGlobalVariablesFree(); + + // NOTE: Uninline. + mapLocalVariablesFree(); } // 0x481FB4