Fixed alloc/dealloc mismatches

This commit is contained in:
David Anderson 2005-08-18 00:29:43 +00:00
parent 661f6c9851
commit 03b6d3e77d
5 changed files with 4 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -220,7 +220,7 @@ CAmxxReader::~CAmxxReader()
} }
if (m_Bh.plugins) if (m_Bh.plugins)
{ {
delete m_Bh.plugins; delete [] m_Bh.plugins;
m_Bh.plugins = NULL; m_Bh.plugins = NULL;
} }
} }

View File

@ -95,4 +95,6 @@ _amxx_DynaCodesize:
pop ebp pop ebp
ret ret
section .data
GLOBAL_GATE DD 0 GLOBAL_GATE DD 0

View File

@ -406,7 +406,7 @@ void ClearPluginLibraries()
for (size_t i=0; i<g_RegNatives.size(); i++) for (size_t i=0; i<g_RegNatives.size(); i++)
{ {
delete g_RegNatives[i]->pfn; delete [] g_RegNatives[i]->pfn;
delete g_RegNatives[i]; delete g_RegNatives[i];
} }
g_RegNatives.clear(); g_RegNatives.clear();