libidav/webdav.c

changeset 852
83fdf679df99
parent 829
122ddf40e24f
--- a/libidav/webdav.c	Thu Nov 28 17:53:13 2024 +0100
+++ b/libidav/webdav.c	Mon Jan 06 21:18:36 2025 +0100
@@ -102,7 +102,7 @@
 void dav_context_destroy(DavContext *ctx) {
     // destroy all sessions assoziated with this context
     // ctx->sessions destructor must be dav_session_destructor
-    cxListDestroy(ctx->sessions);
+    cxListFree(ctx->sessions);
     
     if(ctx->http_proxy) {
         free(ctx->http_proxy);
@@ -123,7 +123,7 @@
             }
             free(ns);
         }
-        cxMapDestroy(ctx->namespaces);
+        cxMapFree(ctx->namespaces);
     }
     if(ctx->namespaceinfo) {
         // TODO: implement
@@ -140,7 +140,7 @@
             }
             free(key);
         }
-        cxMapDestroy(ctx->keys);
+        cxMapFree(ctx->keys);
     }    
     
     free(ctx);
@@ -418,7 +418,7 @@
         cx_foreach(DavProperty*, p, i) {
             free(p->name);
         }
-        cxListDestroy(proplist);
+        cxListFree(proplist);
     }
     
     return resource;

mercurial