1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 03:46:39 +02:00

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
This commit is contained in:
Adam
2015-07-13 17:59:14 -04:00
parent 4362f53cc3
commit ceddb8370c
8 changed files with 19 additions and 0 deletions
+2
View File
@@ -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);