mirror of
https://github.com/anope/anope.git
synced 2026-07-06 02:33:13 +02:00
Cleanup after os_dns on unload
This commit is contained in:
@@ -659,6 +659,14 @@ class ModuleDNS : public Module
|
||||
this->OnReload();
|
||||
}
|
||||
|
||||
~ModuleDNS()
|
||||
{
|
||||
for (unsigned i = 0; i < zones.size(); ++i)
|
||||
delete zones[i];
|
||||
for (unsigned i = 0; i < dns_servers.size(); ++i)
|
||||
delete dns_servers[i];
|
||||
}
|
||||
|
||||
void OnReload() anope_override
|
||||
{
|
||||
ConfigReader config;
|
||||
|
||||
Reference in New Issue
Block a user