dav/config.c

branch
ucx-3.1
changeset 816
839fefbdedc7
parent 806
673a803d2203
--- 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);

mercurial