From ceddb8370c85f5c5319b497a9c4efb578338beed Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 13 Jul 2015 17:59:14 -0400 Subject: 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 --- src/module.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/module.cpp') 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); -- cgit