diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-01-06 13:29:10 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-01-06 13:29:10 +0100 |
commit | 5a366d8945e1312190d0012eb36d2facaa908650 (patch) | |
tree | d350b3c52832766da6259eb663ac42e4fb056acf /src/base.cpp | |
parent | be3644c74be3f1c40be2d32c6cfcace73689e359 (diff) |
Unset all extensions and the topic when lowering TS on a channel
Diffstat (limited to 'src/base.cpp')
-rw-r--r-- | src/base.cpp | 7 |
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() |