diff options
Diffstat (limited to 'engines/hopkins/globals.cpp')
-rw-r--r-- | engines/hopkins/globals.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/hopkins/globals.cpp b/engines/hopkins/globals.cpp index aee0cb23a2..e19819f95c 100644 --- a/engines/hopkins/globals.cpp +++ b/engines/hopkins/globals.cpp @@ -261,6 +261,8 @@ Globals::Globals() { Globals::~Globals() { free(ICONE); + dos_free2(TETE); + dos_free2(police); dos_free2(BUF_ZONE); dos_free2(CACHE_BANQUE[6]); dos_free2(texte_tmp); @@ -277,6 +279,8 @@ Globals::~Globals() { dos_free2(ADR_FICHIER_OBJ); dos_free2(PERSO); + CLEAR_VBOB(); + free(g_PTRNUL); } @@ -474,6 +478,8 @@ void Globals::CLEAR_VBOB() { VBob[idx].yp = 0; VBob[idx].frameIndex = 0; VBob[idx].fieldC = 0; + if (VBob[idx].surface != g_PTRNUL) + dos_free2(VBob[idx].surface); VBob[idx].surface = g_PTRNUL; VBob[idx].spriteData = g_PTRNUL; VBob[idx].oldSpriteData = g_PTRNUL; |