diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-03-04 11:14:44 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-03-04 11:14:44 +0000 |
commit | 9faab37c4c3dd92ce003cd4c177d1cd1fc3bf0e7 (patch) | |
tree | 902ff072baaea7223d055b81b2bafa54831890e7 /code/qcommon/vm.c | |
parent | bb50a3f642af15c8e268c19c930c4481631f7e35 (diff) | |
download | ioquake3-aero-9faab37c4c3dd92ce003cd4c177d1cd1fc3bf0e7.tar.gz ioquake3-aero-9faab37c4c3dd92ce003cd4c177d1cd1fc3bf0e7.zip |
use mmap to allocate memory for generated code to be able to set PROT_EXEC
git-svn-id: svn://svn.icculus.org/quake3/trunk@616 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon/vm.c')
-rw-r--r-- | code/qcommon/vm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/code/qcommon/vm.c b/code/qcommon/vm.c index 9e18f1c..0eb35c5 100644 --- a/code/qcommon/vm.c +++ b/code/qcommon/vm.c @@ -615,6 +615,9 @@ VM_Free */ void VM_Free( vm_t *vm ) { + if(vm->destroy) + vm->destroy(vm); + if ( vm->dllHandle ) { Sys_UnloadDll( vm->dllHandle ); Com_Memset( vm, 0, sizeof( *vm ) ); |