mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 22:35:37 +03:00
Fixed alloc/dealloc mismatches
This commit is contained in:
parent
661f6c9851
commit
03b6d3e77d
Binary file not shown.
Binary file not shown.
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -95,4 +95,6 @@ _amxx_DynaCodesize:
|
|||||||
pop ebp
|
pop ebp
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
section .data
|
||||||
|
|
||||||
GLOBAL_GATE DD 0
|
GLOBAL_GATE DD 0
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user