Skip to content

Commit 07dfa78

Browse files
committed
Actually clear the StringPool
1 parent 3bd3197 commit 07dfa78

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

zasm/include/zasm/core/stringpool.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ namespace zasm
151151
{
152152
_entries.clear();
153153
_blocks.clear();
154+
_freeEntries.clear();
155+
for (auto& bucket : _hashBuckets)
156+
{
157+
bucket.clear();
158+
}
154159
}
155160

156161
std::size_t size() const noexcept

0 commit comments

Comments
 (0)