From fcecd68702f48a8b9f2a07d933a50d42a83c0399 Mon Sep 17 00:00:00 2001 From: Julian Hinxlage Date: Wed, 8 Jan 2020 12:11:15 +0100 Subject: [PATCH] reset shared memory if reset() is called --- src/vkvm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vkvm.cpp b/src/vkvm.cpp index 5c03457..23066b3 100644 --- a/src/vkvm.cpp +++ b/src/vkvm.cpp @@ -187,6 +187,8 @@ namespace vkvm { } auto reset() -> void { + impl.sharedMemory = nullptr; + impl.localSharedMemory.clear(); setDefaultValues(); }