mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
[windows] fix ~VirtualMemory()
R=asiva@google.com Review URL: https://codereview.chromium.org/2414133002 .
This commit is contained in:
parent
d8276c4ef9
commit
6f7696dfc9
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue