summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index fb4c61ad..824006df 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -41,6 +41,7 @@ Buffer::Buffer(const std::string& name, Type type,
Buffer::~Buffer()
{
m_windows.clear();
+ BufferManager::instance().unregister_buffer(this);
assert(m_modification_listeners.empty());
}