Clear buffer values explicitely in destructor

Buffer values could be registered as a listener, so we need to
get rid of them before asserting that all listeners have been
unregistered.
This commit is contained in:
Maxime Coste 2014-01-11 19:05:09 +00:00
parent 1d51e6922a
commit ba5b21d43e

View File

@ -67,6 +67,7 @@ Buffer::~Buffer()
m_options.unregister_watcher(*this);
BufferManager::instance().unregister_buffer(*this);
m_values.clear();
kak_assert(m_change_listeners.empty());
}