Actually release interned string data when refcount drops to 0
This commit is contained in:
parent
ec09fc3a75
commit
502de87697
|
@ -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>{};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user