From 5a366d8945e1312190d0012eb36d2facaa908650 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 6 Jan 2014 13:29:10 +0100 Subject: Unset all extensions and the topic when lowering TS on a channel --- src/base.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/base.cpp') diff --git a/src/base.cpp b/src/base.cpp index db8d9f3cf..211dc2015 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -186,13 +186,18 @@ Extensible::Extensible() } CullResult Extensible::cull() +{ + FreeAllExtItems(); + return classbase::cull(); +} + +void Extensible::FreeAllExtItems() { for(ExtensibleStore::iterator i = extensions.begin(); i != extensions.end(); ++i) { i->first->free(i->second); } extensions.clear(); - return classbase::cull(); } Extensible::~Extensible() -- cgit v1.2.3