diff options
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 ) ); |