From 079486ed7eba3d15567bb5ee9677c81dd190cffa Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 27 Sep 2020 08:14:37 -0600 Subject: AK: Clear previous/next link in InlineLinkList::remove --- AK/InlineLinkedList.h | 3 +++ 1 file changed, 3 insertions(+) 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::remove(T* node) ASSERT(node == m_tail); m_tail = node->prev(); } + + node->set_next(0); + node->set_prev(0); } template -- cgit v1.2.3