1.1 --- a/src/linked_list.c Mon Mar 20 18:05:12 2023 +0100 1.2 +++ b/src/linked_list.c Mon Mar 20 19:09:08 2023 +0100 1.3 @@ -598,7 +598,7 @@ 1.4 switch (list->content_destructor_type) { 1.5 case CX_DESTRUCTOR_SIMPLE: { 1.6 while (node != NULL) { 1.7 - list->simple_destructor(node->payload); 1.8 + cx_list_invoke_simple_destructor(list, node->payload); 1.9 cx_linked_list_node *next = node->next; 1.10 cxFree(list->allocator, node); 1.11 node = next; 1.12 @@ -607,8 +607,7 @@ 1.13 } 1.14 case CX_DESTRUCTOR_ADVANCED: { 1.15 while (node != NULL) { 1.16 - list->advanced_destructor.func(list->advanced_destructor.data, 1.17 - node->payload); 1.18 + cx_list_invoke_advanced_destructor(list, node->payload); 1.19 cx_linked_list_node *next = node->next; 1.20 cxFree(list->allocator, node); 1.21 node = next;