From 502de87697a1502b2aaec69c341730d920439dbd Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 29 Oct 2014 13:54:35 +0000 Subject: [PATCH] Actually release interned string data when refcount drops to 0 --- src/interned_string.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interned_string.cc b/src/interned_string.cc index ec2e15f4..2f2f56f8 100644 --- a/src/interned_string.cc +++ b/src/interned_string.cc @@ -51,7 +51,7 @@ void StringRegistry::release(size_t slot) noexcept auto it = m_slot_map.find(StringView{data.data(), (int)data.size()}); kak_assert(it != m_slot_map.end()); m_slot_map.erase(it); - data.clear(); + data = std::vector{}; } }