1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:17:35 +00:00

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

View file

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