Fix linux build

This commit is contained in:
Peace-Maker
2018-01-27 17:24:02 +01:00
parent aa3018a27d
commit b365b775c9
4 changed files with 18 additions and 17 deletions
+2 -1
View File
@@ -95,7 +95,8 @@ CHook::~CHook()
copy_bytes((unsigned char *) m_pTrampoline, (unsigned char *) m_pFunc, JMP_SIZE);
// Free the trampoline array
delete [] m_pTrampoline;
unsigned char* pTrampoline = (unsigned char *)m_pTrampoline;
delete [] pTrampoline;
// Free the asm bridge and new return address
smutils->GetScriptingEngine()->FreePageMemory(m_pBridge);