From 03b6d3e77da1325e56777ff180a7f80ec9a84aed Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 18 Aug 2005 00:29:43 +0000 Subject: [PATCH] Fixed alloc/dealloc mismatches --- amxmodx/JIT/natives-x86.o | Bin 1184 -> 1232 bytes amxmodx/JIT/natives-x86.obj | Bin 823 -> 899 bytes amxmodx/amxxfile.cpp | 2 +- amxmodx/natives-x86.asm | 2 ++ amxmodx/natives.cpp | 2 +- 5 files changed, 4 insertions(+), 2 deletions(-) diff --git a/amxmodx/JIT/natives-x86.o b/amxmodx/JIT/natives-x86.o index 221831c8c879c2431554548ea22971a0c0f8b8e5..45cc2aeda2e8fc664a4559c3ae387899da7bbb62 100755 GIT binary patch delta 398 zcmZ3$d4Y3+0W${!%S1=@i2;0*7cj9*%;8~eU}Rv}H?daQkeLAj9GDmwIG}70#R6sX z0%@RHI0%@yP`q9Y$c1SH$rJ!JTfvneG$;VYfKqU<0mu;mn#Kkc;RIrkB?3UK0mR7W z9RPB!0L5Sc<^Thr08pPMOq^i>&;*bmD-eSefeZxsBDC{qw=2hDhRLTHU8I40hUOzY zv4?@8JEVXdFbgiv$S_%eNpWHT%Va|)b(WOGlElejOfJBHGT;a4gaKv-rpf1-Ou1ov hpwBk*Gp8|X1MLJ^!3cD-4~Pcx)1Y(}RD3m*4**}3ELZ>l delta 349 zcmcb>xqx$m0W&)T^F&AWi2;0*4=}Mz%;8~8U}Ru8HnCQ^o&gFBm>3x3VH_Y0lm`O= zAju46gQx(YIuj&5Oq~=^3@8N$6F?lGBrA~O0Ady(2AQP<#7O2bF-(~3$S7{11r+84 zVi+g@sy6^~K-xf7fM}30Fc8}LwA+CMi=>bplI_Ep4h`c(H$U%#2yBzLsr8W zKUs%KadIG&`s6w$r-=bj0K3< z7(kktz$_oQSQ?yF1(#h77XvatV6rWvxhBY!AeSQm%>5t{kh#o^ARjPHu4H`63Sux# I&Sp9T05M!Ef&c&j delta 199 zcmZo>-_FMC!^p@W_UDb09U}vS;6z?=g<}j13^qW_1QY-PHXv4D2uKL+eA?~Gu{eHW zj*EOeP^|d~PwZi!;0`GuC-yLqU_eq5ghL5CP#F^tvoT1+Sw3)97MxWFXRU{^CZ{r* Wvw~d5Hu)&yTUL+-jFY!BodE!&^CuSo diff --git a/amxmodx/amxxfile.cpp b/amxmodx/amxxfile.cpp index bffe83f1..9a818be5 100755 --- a/amxmodx/amxxfile.cpp +++ b/amxmodx/amxxfile.cpp @@ -220,7 +220,7 @@ CAmxxReader::~CAmxxReader() } if (m_Bh.plugins) { - delete m_Bh.plugins; + delete [] m_Bh.plugins; m_Bh.plugins = NULL; } } diff --git a/amxmodx/natives-x86.asm b/amxmodx/natives-x86.asm index 91d4b693..9632b2b2 100755 --- a/amxmodx/natives-x86.asm +++ b/amxmodx/natives-x86.asm @@ -95,4 +95,6 @@ _amxx_DynaCodesize: pop ebp ret +section .data + GLOBAL_GATE DD 0 diff --git a/amxmodx/natives.cpp b/amxmodx/natives.cpp index 571748fa..63ee5607 100755 --- a/amxmodx/natives.cpp +++ b/amxmodx/natives.cpp @@ -406,7 +406,7 @@ void ClearPluginLibraries() for (size_t i=0; ipfn; + delete [] g_RegNatives[i]->pfn; delete g_RegNatives[i]; } g_RegNatives.clear();