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:
+4
-2
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user