diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-08-06 16:09:29 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-08-06 16:09:29 +0000 |
commit | 7e4c2e2d66c07d3d6c911f872629b3dfd88a6872 (patch) | |
tree | 93cc561fa58b6f59bb5be75050d707546dce42d0 /code/qcommon | |
parent | 0ad0980188e59d4d1f979ddc979cec82fae2c3f4 (diff) | |
download | ioquake3-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')
-rw-r--r-- | code/qcommon/vm_x86.c | 2 | ||||
-rw-r--r-- | code/qcommon/vm_x86_64.c | 2 |
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 |