summaryrefslogtreecommitdiff
path: root/src/module.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2015-07-13 17:59:14 -0400
committerAdam <Adam@anope.org>2015-07-13 17:59:14 -0400
commitceddb8370c85f5c5319b497a9c4efb578338beed (patch)
treec43b6a5d4ac515bf4492840b17aa63172a617d71 /src/module.cpp
parent4362f53cc38177039d6f6b86565e73800e7b5390 (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/module.cpp')
-rw-r--r--src/module.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/module.cpp b/src/module.cpp
index 3266c955f..5c02e4e49 100644
--- a/src/module.cpp
+++ b/src/module.cpp
@@ -64,6 +64,8 @@ Module::Module(const Anope::string &modname, const Anope::string &, ModType modt
Module::~Module()
{
+ UnsetExtensibles();
+
/* Detach all event hooks for this module */
ModuleManager::DetachAll(this);
IdentifyRequest::ModuleUnload(this);