Index: runtime/vm/virtual_memory_android.cc |
diff --git a/runtime/vm/virtual_memory_android.cc b/runtime/vm/virtual_memory_android.cc |
index bae5a82d5d39d75f16b03234ac22c61753d78055..6a151b273732813ae2f608dcd9fdf392fc39c611 100644 |
--- a/runtime/vm/virtual_memory_android.cc |
+++ b/runtime/vm/virtual_memory_android.cc |
@@ -54,7 +54,7 @@ static void unmap(void* address, intptr_t size) { |
VirtualMemory::~VirtualMemory() { |
- if (!embedder_allocated()) { |
+ if (vm_owns_region()) { |
unmap(address(), reserved_size_); |
} |
} |