fixed memory leak
This commit is contained in:
		@@ -487,6 +487,10 @@ int unload_amxscript(AMX* amx, void** program)
 | 
			
		||||
	Handler *pHandler = (Handler *)amx->userdata[UD_HANDLER];
 | 
			
		||||
	if (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);
 | 
			
		||||
	
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user