From c782c2aaf5d0bdeaf2c81fc85864a388f1c6cb05 Mon Sep 17 00:00:00 2001 From: Giegue Date: Sun, 30 Apr 2023 11:32:12 -0300 Subject: [PATCH] Fixed a heap corruption. --- src/dlls/dllapi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dlls/dllapi.cpp b/src/dlls/dllapi.cpp index 9ab5958..801e4cb 100644 --- a/src/dlls/dllapi.cpp +++ b/src/dlls/dllapi.cpp @@ -1259,6 +1259,7 @@ int mmDispatchSpawn( edict_t *pent ) // free the soundlists first! if (monsters[index].pMonster->m_srSoundList != NULL) free(monsters[index].pMonster->m_srSoundList); + monsters[index].pMonster->m_srSoundList = NULL; delete monsters[index].pMonster; }