mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +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
1 changed files with 1 additions and 1 deletions
|
@ -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