diff options
-rw-r--r-- | AK/InlineLinkedList.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/AK/InlineLinkedList.h b/AK/InlineLinkedList.h index d40634e838..6f1a9b4fff 100644 --- a/AK/InlineLinkedList.h +++ b/AK/InlineLinkedList.h @@ -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> |