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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user