AK: Zero previous pointer *after* fixing the insertion list in HashTable

This commit is contained in:
Hendiadyoin1 2022-06-23 17:00:41 +02:00 committed by Idan Horowitz
commit 5bf84a5b0e
Notes: sideshowbarker 2024-07-17 10:01:25 +09:00
2 changed files with 10 additions and 1 deletions

View file

@ -704,11 +704,11 @@ private:
bucket.previous->next = bucket.next;
else
m_collection_data.head = bucket.next;
bucket.previous = nullptr;
if (bucket.next)
bucket.next->previous = bucket.previous;
else
m_collection_data.tail = bucket.previous;
bucket.previous = nullptr;
bucket.next = nullptr;
}
}