--- a/dav/config.c Sat Apr 20 13:01:58 2024 +0200 +++ b/dav/config.c Thu May 23 22:35:45 2024 +0200 @@ -486,7 +486,7 @@ * location strings. We need a list, that contains only urls */ CxList *locations = cxLinkedListCreate(cxDefaultAllocator, (cx_compare_func)cmp_url_cred_entry, CX_STORE_POINTERS); - locations->simple_destructor = (cx_destructor_func)free_cred_location; + cxDefineDestructor(locations, free_cred_location); CxIterator i = cxListIterator(secrets->locations); cx_foreach(PwdIndexEntry*, e, i) { CxIterator entry_iter = cxListIterator(e->locations);