From 07dfa78f67bd527619fd8b714d27879b03fddd73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:51:34 +0200 Subject: [PATCH] Actually clear the StringPool --- zasm/include/zasm/core/stringpool.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zasm/include/zasm/core/stringpool.hpp b/zasm/include/zasm/core/stringpool.hpp index 60c41f7..79b55bd 100644 --- a/zasm/include/zasm/core/stringpool.hpp +++ b/zasm/include/zasm/core/stringpool.hpp @@ -151,6 +151,11 @@ namespace zasm { _entries.clear(); _blocks.clear(); + _freeEntries.clear(); + for (auto& bucket : _hashBuckets) + { + bucket.clear(); + } } std::size_t size() const noexcept