src/linked_list.c

changeset 1387
9bdd053820b7
parent 1367
6b3d52dd176e
--- a/src/linked_list.c	Sun Sep 21 19:31:30 2025 +0200
+++ b/src/linked_list.c	Mon Sep 22 19:22:23 2025 +0200
@@ -987,6 +987,7 @@
         cx_linked_list_remove(&ll->begin, &ll->end,
                               ll->loc_prev, ll->loc_next, node);
         list->collection.size--;
+        iter->elem_count--;
         cxFree(list->collection.allocator, node);
     } else {
         const cx_linked_list *ll = iter->src_handle.c;
@@ -1009,6 +1010,7 @@
         cx_linked_list_remove(&ll->begin, &ll->end,
                               ll->loc_prev, ll->loc_next, node);
         list->collection.size--;
+        iter->elem_count--;
         cxFree(list->collection.allocator, node);
     } else {
         const cx_linked_list *ll = iter->src_handle.c;

mercurial