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:
parent
0f52144477
commit
079486ed7e
1 changed files with 3 additions and 0 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue