util/IntrusiveForwardList: reset last_cache properly in clear()

This commit is contained in:
Max Kellermann 2023-10-04 12:36:56 +02:00 committed by Max Kellermann
parent 5ddddbb16f
commit 44daa6d3e6
1 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ public:
void clear() noexcept {
head = {};
last_cache = {};
last_cache = {&head};
counter.reset();
}
@ -196,7 +196,7 @@ public:
disposer(item);
}
last_cache = {};
last_cache = {&head};
}
/**