diff options
author | Adam <Adam@anope.org> | 2015-07-13 17:59:14 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2015-07-13 17:59:14 -0400 |
commit | ceddb8370c85f5c5319b497a9c4efb578338beed (patch) | |
tree | c43b6a5d4ac515bf4492840b17aa63172a617d71 /src/regchannel.cpp | |
parent | 4362f53cc38177039d6f6b86565e73800e7b5390 (diff) |
Unset extensibles on larger objects when they destruct
Some complex extensibles require the full object to still be alive in
their destructors to keep proper bookkeeping
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r-- | src/regchannel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 397a6f28b..2b17c72ca 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -142,6 +142,8 @@ ChannelInfo::ChannelInfo(const ChannelInfo &ci) : Serializable("ChannelInfo"), ChannelInfo::~ChannelInfo() { + UnsetExtensibles(); + FOREACH_MOD(OnDelChan, (this)); Log(LOG_DEBUG) << "Deleting channel " << this->name; |