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.
+1 -1
View File
@@ -220,7 +220,7 @@ CAmxxReader::~CAmxxReader()
}
if (m_Bh.plugins)
{
delete m_Bh.plugins;
delete [] m_Bh.plugins;
m_Bh.plugins = NULL;
}
}
+2
View File
@@ -95,4 +95,6 @@ _amxx_DynaCodesize:
pop ebp
ret
section .data
GLOBAL_GATE DD 0
+1 -1
View File
@@ -406,7 +406,7 @@ void ClearPluginLibraries()
for (size_t i=0; i<g_RegNatives.size(); i++)
{
delete g_RegNatives[i]->pfn;
delete [] g_RegNatives[i]->pfn;
delete g_RegNatives[i];
}
g_RegNatives.clear();