1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 03:26:38 +02:00

Properly initialized new objects when needed so they don't contain garbage data.

Also, converted line endings in os_ignore_db from CR+LF to LF.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1784 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2008-11-22 02:31:23 +00:00
parent 16e667a2ce
commit fb5d7d1815
10 changed files with 585 additions and 550 deletions
+4 -2
View File
@@ -217,8 +217,10 @@ User::~User()
if (this->uid)
delete [] this->uid;
Anope_Free(this->realname);
delete [] this->hostip;
if (this->realname)
delete [] this->realname;
if (this->hostip)
delete [] this->hostip;
if (debug >= 2)
alog("debug: User::~User(): remove from channels");