application/config.c

changeset 49
2f71f4ee247a
parent 7
905ac52c910f
child 50
9c25e2616bfa
--- a/application/config.c	Thu Oct 03 18:52:51 2024 +0200
+++ b/application/config.c	Sun Oct 06 18:18:04 2024 +0200
@@ -436,7 +436,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);

mercurial