mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 06:45:37 +03:00
Fixed a deallocation mismatch with debug plugins in linux
This commit is contained in:
parent
5693d2629e
commit
7ea47c5a96
@ -603,7 +603,12 @@ int unload_amxscript(AMX* amx, void** program)
|
|||||||
#if defined JIT
|
#if defined JIT
|
||||||
#if defined __linux__ && defined MEMORY_TEST
|
#if defined __linux__ && defined MEMORY_TEST
|
||||||
#undef free
|
#undef free
|
||||||
free(prg);
|
if (flags & AMX_FLAG_DEBUG)
|
||||||
|
{
|
||||||
|
delete [] prg;
|
||||||
|
} else {
|
||||||
|
free(prg);
|
||||||
|
}
|
||||||
#define free(ptr) m_deallocator(__FILE__,__LINE__,__FUNCTION__,m_alloc_free,ptr)
|
#define free(ptr) m_deallocator(__FILE__,__LINE__,__FUNCTION__,m_alloc_free,ptr)
|
||||||
#elif defined WIN32
|
#elif defined WIN32
|
||||||
if (flags & AMX_FLAG_DEBUG)
|
if (flags & AMX_FLAG_DEBUG)
|
||||||
|
Loading…
Reference in New Issue
Block a user