aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-04-24 13:28:07 +0000
committerGravatar brain2006-04-24 13:28:07 +0000
commit5d407fb44c759524881712a80febb86b4506ddbf (patch)
treef0f426e645518a859ad25284f478854818a92da8 /src/users.cpp
parentForward-port of 1.0.4 tweak (diff)
downloadinspircd++-5d407fb44c759524881712a80febb86b4506ddbf.tar.gz
inspircd++-5d407fb44c759524881712a80febb86b4506ddbf.tar.bz2
inspircd++-5d407fb44c759524881712a80febb86b4506ddbf.zip
delete operator tracking in debug mode (using a macro -- live with it.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/users.cpp b/src/users.cpp
index d4919af06..41f1f097c 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -139,7 +139,7 @@ userrec::~userrec()
for (std::vector<ucrec*>::iterator n = chans.begin(); n != chans.end(); n++)
{
ucrec* x = (ucrec*)*n;
- delete x;
+ DELETE(x);
}
}
@@ -543,7 +543,7 @@ void kill_link(userrec *user,const char* r)
}
}
clientlist.erase(iter);
- delete user;
+ DELETE(user);
}
}
@@ -587,7 +587,7 @@ void AddWhoWas(userrec* u)
if (group->size() > 10)
{
WhoWasGroup *a = (WhoWasGroup*)*(group->begin());
- delete a;
+ DELETE(a);
group->pop_front();
}
@@ -607,7 +607,7 @@ void MaintainWhoWas(time_t TIME)
while ((n->begin() != n->end()) && ((*n->begin())->signon < TIME - 259200)) // 3 days
{
WhoWasGroup *a = *(n->begin());
- delete a;
+ DELETE(a);
n->erase(n->begin());
}
}
@@ -634,7 +634,7 @@ void AddClient(int socket, int port, bool iscached, in_addr ip4)
if (iter != clientlist.end())
{
userrec* goner = iter->second;
- delete goner;
+ DELETE(goner);
clientlist.erase(iter);
}