diff options
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index a86f37076..90987f279 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -51,10 +51,10 @@ BotInfo::~BotInfo() nbots--; - free(this->nick); - free(this->user); - free(this->host); - free(this->real); + delete [] this->nick; + delete [] this->user; + delete [] this->host; + delete [] this->real; } @@ -68,7 +68,7 @@ void BotInfo::ChangeNick(const char *newnick) botlists[tolower(*this->nick)] = this->next; if (this->nick) - free(this->nick); + delete [] this->nick; this->nick = sstrdup(newnick); insert_bot(this); |