summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-18 01:40:26 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-18 01:40:26 +0000
commit93a78a57ada6d5dab410c2bd3c4b02f4fa15684c (patch)
tree82e2ef7308da4fdc8a24bd91a681fd66898937fe /src/inspircd.cpp
parentcced60255b08181d35b9bb26545a85feebd6b5cb (diff)
Add more debug logging of object lifetimes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11900 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index c59109724..862aa31d0 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -83,11 +83,9 @@ const char* ExitCodes[] =
template<typename T> static void DeleteZero(T*&n)
{
- if (n != NULL)
- {
- delete n;
- n = NULL;
- }
+ T* t = n;
+ n = NULL;
+ delete t;
}
void InspIRCd::Cleanup()