summaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 7ab8636ac..67f976d9a 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -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();
}