[windows] fix ~VirtualMemory()

R=asiva@google.com

Review URL: https://codereview.chromium.org/2414133002 .
This commit is contained in:
Zach Anderson 2016-10-13 12:41:26 -07:00
parent d8276c4ef9
commit 6f7696dfc9

View file

@ -35,7 +35,7 @@ VirtualMemory* VirtualMemory::ReserveInternal(intptr_t size) {
VirtualMemory::~VirtualMemory() {
if (embedder_allocated() || (reserved_size_ == 0)) {
if (embedder_allocated()) {
return;
}
if (VirtualFree(address(), 0, MEM_RELEASE) == 0) {