diff -r 87eb4bdb2d0e -r 1caed6c9ba68 src/list.c --- a/src/list.c Sun May 21 14:40:05 2023 +0200 +++ b/src/list.c Sun May 21 14:56:10 2023 +0200 @@ -273,25 +273,7 @@ // void cxListDestroy(CxList *list) { - if (list->simple_destructor) { - CxIterator iter = cxListIterator(list); - cx_foreach(void*, elem, iter) { - // already correctly resolved pointer - immediately invoke dtor - list->simple_destructor(elem); - } - } - if (list->advanced_destructor) { - CxIterator iter = cxListIterator(list); - cx_foreach(void*, elem, iter) { - // already correctly resolved pointer - immediately invoke dtor - list->advanced_destructor(list->destructor_data, elem); - } - } - list->cl->destructor(list); - if (list->allocator) { - cxFree(list->allocator, list); - } } int cxListCompare(