Fixed alloc/dealloc mismatches
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -220,7 +220,7 @@ CAmxxReader::~CAmxxReader() | ||||
| 	} | ||||
| 	if (m_Bh.plugins) | ||||
| 	{ | ||||
| 		delete m_Bh.plugins; | ||||
| 		delete [] m_Bh.plugins; | ||||
| 		m_Bh.plugins = NULL; | ||||
| 	} | ||||
| } | ||||
|   | ||||
| @@ -95,4 +95,6 @@ _amxx_DynaCodesize: | ||||
| 	pop		ebp | ||||
| 	ret | ||||
| 	 | ||||
| section .data | ||||
| 	 | ||||
| GLOBAL_GATE		DD		0 | ||||
|   | ||||
| @@ -406,7 +406,7 @@ void ClearPluginLibraries() | ||||
|  | ||||
| 	for (size_t i=0; i<g_RegNatives.size(); i++) | ||||
| 	{ | ||||
| 		delete g_RegNatives[i]->pfn; | ||||
| 		delete [] g_RegNatives[i]->pfn; | ||||
| 		delete g_RegNatives[i]; | ||||
| 	} | ||||
| 	g_RegNatives.clear(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user