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:
parent
1d51e6922a
commit
ba5b21d43e
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user