mirror of
https://github.com/anope/anope.git
synced 2026-06-28 06:36:38 +02:00
Switch Destroy methods to delete
This commit is contained in:
+2
-2
@@ -301,7 +301,7 @@ bool XLineManager::DelXLine(XLine *x)
|
||||
{
|
||||
this->SendDel(x);
|
||||
|
||||
x->Destroy();
|
||||
delete x;
|
||||
this->xlines->erase(it);
|
||||
|
||||
return true;
|
||||
@@ -327,7 +327,7 @@ void XLineManager::Clear()
|
||||
XLine *x = this->xlines->at(i);
|
||||
if (!x->id.empty())
|
||||
XLinesByUID->erase(x->id);
|
||||
x->Destroy();
|
||||
delete x;
|
||||
}
|
||||
this->xlines->clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user