vm: Fix stack memory release, always reset memory flags

This commit is contained in:
Eladash 2020-09-26 10:08:12 +03:00 committed by Ivan
parent f22348a9f9
commit 53c8ed6a63

View File

@ -805,7 +805,7 @@ namespace vm
vm::writer_lock lock(0); vm::writer_lock lock(0);
// Deallocate all memory // Deallocate all memory
for (auto it = m_map.begin(), end = m_map.end(); !m_common && it != end;) for (auto it = m_map.begin(), end = m_map.end(); it != end;)
{ {
const auto next = std::next(it); const auto next = std::next(it);
const auto size = it->second.first; const auto size = it->second.first;