From 93a78a57ada6d5dab410c2bd3c4b02f4fa15684c Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 18 Oct 2009 01:40:26 +0000 Subject: Add more debug logging of object lifetimes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11900 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/inspircd.cpp') 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 static void DeleteZero(T*&n) { - if (n != NULL) - { - delete n; - n = NULL; - } + T* t = n; + n = NULL; + delete t; } void InspIRCd::Cleanup() -- cgit v1.3.1-10-gc9f91