summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 58480668b..b67815ed2 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -113,6 +113,8 @@ void InspIRCd::Cleanup()
/* Must be deleted before modes as it decrements modelines */
if (FakeClient)
FakeClient->cull();
+ if (Res)
+ Res->cull();
DeleteZero(this->FakeClient);
DeleteZero(this->Users);
DeleteZero(this->Modes);
@@ -523,7 +525,7 @@ InspIRCd::InspIRCd(int argc, char** argv) :
this->Config->Apply(NULL, "");
Logs->OpenFileLogs();
- this->Res = new DNS;
+ this->Res = new DNS();
/*
* Initialise SID/UID.