mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-26 13:48:03 +03:00
fixed memory leak
This commit is contained in:
parent
85c37c6a39
commit
4aaa2f8e0f
@ -487,6 +487,10 @@ int unload_amxscript(AMX* amx, void** program)
|
|||||||
Handler *pHandler = (Handler *)amx->userdata[UD_HANDLER];
|
Handler *pHandler = (Handler *)amx->userdata[UD_HANDLER];
|
||||||
if (pHandler)
|
if (pHandler)
|
||||||
delete pHandler;
|
delete pHandler;
|
||||||
|
|
||||||
|
optimizer_s *opt = (optimizer_s *)amx->usertags[UT_OPTIMIZER];
|
||||||
|
if (opt)
|
||||||
|
delete opt;
|
||||||
|
|
||||||
CList<CScript, AMX*>::iterator a = g_loadedscripts.find(amx);
|
CList<CScript, AMX*>::iterator a = g_loadedscripts.find(amx);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user