diff --git a/src/util/IntrusiveTreeSet.hxx b/src/util/IntrusiveTreeSet.hxx index 6594f8b26..72989762b 100644 --- a/src/util/IntrusiveTreeSet.hxx +++ b/src/util/IntrusiveTreeSet.hxx @@ -365,6 +365,8 @@ public: SetRoot(root); + ++counter; + return iterator_to(value); } @@ -374,6 +376,7 @@ public: auto *next = RedBlackTreeNode::GetNextNode(i.node); Cast(i.node)->unlink(); + --counter; return iterator{next}; }