diff options
author | Adam <Adam@anope.org> | 2012-12-25 12:40:09 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-12-25 12:40:09 -0500 |
commit | 556a4375e226760169150179b5bcaa659aaf055e (patch) | |
tree | f512f2eb7ddb7cf61c122c5fdf372c3ae718a884 /modules/commands/os_dns.cpp | |
parent | eab583310d4800913d0b8bb710e79f405f1342b6 (diff) |
Cleanup after os_dns on unload
Diffstat (limited to 'modules/commands/os_dns.cpp')
-rw-r--r-- | modules/commands/os_dns.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/commands/os_dns.cpp b/modules/commands/os_dns.cpp index 757266e89..d825851f3 100644 --- a/modules/commands/os_dns.cpp +++ b/modules/commands/os_dns.cpp @@ -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; |