From 1fd1b98ced9474d3358dc10dfc18580aa5351ed7 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 16 Oct 2006 13:23:27 +0000 Subject: if (dl) { do_something() } else { delete dl; } ??? no no no, you cannot delete null pointers! :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5477 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_dccallow.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 767607c6d..13a8884d8 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -405,8 +405,6 @@ class ModuleDCCAllow : public Module } else { - DELETE(dl); - u->Shrink("dccallow_list"); RemoveFromUserlist(u); ServerInstance->Log(DEBUG, "m_dccallow.so: UH OH! Couldn't get DCCALLOW list for %s", u->nick); } @@ -440,8 +438,6 @@ class ModuleDCCAllow : public Module } else { - DELETE(dl); - u->Shrink("dccallow_list"); RemoveFromUserlist(u); } } -- cgit v1.2.3