Actually release interned string data when refcount drops to 0

This commit is contained in:
Maxime Coste 2014-10-29 13:54:35 +00:00
parent ec09fc3a75
commit 502de87697

View File

@ -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<char>{};
}
}