Browse Source

don't call destructor twice

pull/1384/head
orignal 5 years ago
parent
commit
fecc0c4640
  1. 2
      libi2pd/util.h

2
libi2pd/util.h

@ -46,7 +46,7 @@ namespace util @@ -46,7 +46,7 @@ namespace util
{
auto tmp = m_Head;
m_Head = static_cast<T*>(*(void * *)m_Head); // next
delete tmp;
::operator delete ((void *)tmp);
}
}

Loading…
Cancel
Save