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

Made access del by nick and other functions from 326f1a really delete objects

This commit is contained in:
Adam
2013-02-05 09:45:48 -05:00
parent 62e3c8c4f8
commit 25cec015e8
7 changed files with 26 additions and 43 deletions
+6 -2
View File
@@ -97,8 +97,12 @@ ChanAccess::ChanAccess(AccessProvider *p) : Serializable("ChanAccess"), provider
ChanAccess::~ChanAccess()
{
if (ci)
ci->EraseAccess(this);
if (this->ci)
{
std::vector<ChanAccess *>::iterator it = std::find(this->ci->access->begin(), this->ci->access->end(), this);
if (it != this->ci->access->end())
this->ci->access->erase(it);
}
}
void ChanAccess::Serialize(Serialize::Data &data) const