Patch at21699 (Nijule)

This commit is contained in:
David Anderson 2005-11-19 21:52:56 +00:00
parent c051c7f5b7
commit e5a798357c

View File

@ -1783,23 +1783,23 @@ void EnableDebugHandler(AMX *amx)
} }
#if !defined MEMORY_TEST && !defined WIN32 #if !defined MEMORY_TEST && !defined WIN32
void * ::operator new(size_t size) void * operator new(size_t size)
{ {
return (calloc(1, size)); return (calloc(1, size));
} }
void * ::operator new[](size_t size) void * operator new[](size_t size)
{ {
return (calloc(1, size)); return (calloc(1, size));
} }
void ::operator delete(void * ptr) void operator delete(void * ptr)
{ {
if (ptr) if (ptr)
free(ptr); free(ptr);
} }
void ::operator delete[](void * ptr) void operator delete[](void * ptr)
{ {
if (ptr) if (ptr)
free(ptr); free(ptr);