AK: Clear previous/next link in InlineLinkList::remove
This commit is contained in:
parent
0f52144477
commit
079486ed7e
Notes:
sideshowbarker
2024-07-19 02:10:51 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/079486ed7eb Pull-request: https://github.com/SerenityOS/serenity/pull/3619 Reviewed-by: https://github.com/awesomekling
1 changed files with 3 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue