AK: Clear previous/next link in InlineLinkList::remove

This commit is contained in:
Tom 2020-09-27 08:14:37 -06:00 committed by Andreas Kling
parent 0f52144477
commit 079486ed7e
Notes: sideshowbarker 2024-07-19 02:10:51 +09:00

View File

@ -217,6 +217,9 @@ inline void InlineLinkedList<T>::remove(T* node)
ASSERT(node == m_tail);
m_tail = node->prev();
}
node->set_next(0);
node->set_prev(0);
}
template<typename T>