aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-08-06 16:09:29 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-08-06 16:09:29 +0000
commit7e4c2e2d66c07d3d6c911f872629b3dfd88a6872 (patch)
tree93cc561fa58b6f59bb5be75050d707546dce42d0
parent0ad0980188e59d4d1f979ddc979cec82fae2c3f4 (diff)
downloadioquake3-aero-7e4c2e2d66c07d3d6c911f872629b3dfd88a6872.tar.gz
ioquake3-aero-7e4c2e2d66c07d3d6c911f872629b3dfd88a6872.zip
* Fix memory leak in win32 VM code (arQon/dmitry)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1438 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--code/qcommon/vm_x86.c2
-rw-r--r--code/qcommon/vm_x86_64.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/code/qcommon/vm_x86.c b/code/qcommon/vm_x86.c
index ac8dd1a..04f5496 100644
--- a/code/qcommon/vm_x86.c
+++ b/code/qcommon/vm_x86.c
@@ -1123,7 +1123,7 @@ void VM_Destroy_Compiled(vm_t* self)
#ifdef VM_X86_MMAP
munmap(self->codeBase, self->codeLength);
#elif _WIN32
- VirtualFree(self->codeBase, self->codeLength, MEM_RELEASE);
+ VirtualFree(self->codeBase, 0, MEM_RELEASE);
#else
free(self->codeBase);
#endif
diff --git a/code/qcommon/vm_x86_64.c b/code/qcommon/vm_x86_64.c
index 16f2d80..d2b3683 100644
--- a/code/qcommon/vm_x86_64.c
+++ b/code/qcommon/vm_x86_64.c
@@ -1040,7 +1040,7 @@ void VM_Destroy_Compiled(vm_t* self)
#ifdef USE_GAS
munmap(self->codeBase, self->codeLength);
#elif _WIN32
- VirtualFree(self->codeBase, self->codeLength, MEM_RELEASE);
+ VirtualFree(self->codeBase, 0, MEM_RELEASE);
#else
munmap(self->codeBase, self->codeLength);
#endif