summaryrefslogtreecommitdiff
path: root/src/base.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-01-06 13:29:10 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-01-06 13:29:10 +0100
commit5a366d8945e1312190d0012eb36d2facaa908650 (patch)
treed350b3c52832766da6259eb663ac42e4fb056acf /src/base.cpp
parentbe3644c74be3f1c40be2d32c6cfcace73689e359 (diff)
Unset all extensions and the topic when lowering TS on a channel
Diffstat (limited to 'src/base.cpp')
-rw-r--r--src/base.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/base.cpp b/src/base.cpp
index db8d9f3cf..211dc2015 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -187,12 +187,17 @@ 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()