summaryrefslogtreecommitdiff
path: root/src/qcommon/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcommon/vm.c')
-rw-r--r--src/qcommon/vm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qcommon/vm.c b/src/qcommon/vm.c
index 27f30f09..0235ffea 100644
--- a/src/qcommon/vm.c
+++ b/src/qcommon/vm.c
@@ -616,6 +616,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 ) );