mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-27 13:14:15 +00:00
don't call destructor twice
This commit is contained in:
parent
8e919ddc8e
commit
fecc0c4640
@ -46,7 +46,7 @@ namespace util
|
|||||||
{
|
{
|
||||||
auto tmp = m_Head;
|
auto tmp = m_Head;
|
||||||
m_Head = static_cast<T*>(*(void * *)m_Head); // next
|
m_Head = static_cast<T*>(*(void * *)m_Head); // next
|
||||||
delete tmp;
|
::operator delete ((void *)tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user