aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon/vm_x86_64.c
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 /code/qcommon/vm_x86_64.c
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
Diffstat (limited to 'code/qcommon/vm_x86_64.c')
-rw-r--r--code/qcommon/vm_x86_64.c2
1 files changed, 1 insertions, 1 deletions
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