100:d2bd73d28ff1 | 101:7b3a3130be44 |
---|---|
100 } | 100 } |
101 | 101 |
102 void dav_context_destroy(DavContext *ctx) { | 102 void dav_context_destroy(DavContext *ctx) { |
103 // destroy all sessions assoziated with this context | 103 // destroy all sessions assoziated with this context |
104 // ctx->sessions destructor must be dav_session_destructor | 104 // ctx->sessions destructor must be dav_session_destructor |
105 cxListDestroy(ctx->sessions); | 105 cxListFree(ctx->sessions); |
106 | 106 |
107 if(ctx->http_proxy) { | 107 if(ctx->http_proxy) { |
108 free(ctx->http_proxy); | 108 free(ctx->http_proxy); |
109 } | 109 } |
110 if(ctx->https_proxy) { | 110 if(ctx->https_proxy) { |
121 if(ns->name) { | 121 if(ns->name) { |
122 free(ns->name); | 122 free(ns->name); |
123 } | 123 } |
124 free(ns); | 124 free(ns); |
125 } | 125 } |
126 cxMapDestroy(ctx->namespaces); | 126 cxMapFree(ctx->namespaces); |
127 } | 127 } |
128 if(ctx->namespaceinfo) { | 128 if(ctx->namespaceinfo) { |
129 // TODO: implement | 129 // TODO: implement |
130 } | 130 } |
131 if(ctx->keys) { | 131 if(ctx->keys) { |
138 if(key->data) { | 138 if(key->data) { |
139 free(key->data); | 139 free(key->data); |
140 } | 140 } |
141 free(key); | 141 free(key); |
142 } | 142 } |
143 cxMapDestroy(ctx->keys); | 143 cxMapFree(ctx->keys); |
144 } | 144 } |
145 | 145 |
146 free(ctx); | 146 free(ctx); |
147 } | 147 } |
148 | 148 |
416 if(proplist) { | 416 if(proplist) { |
417 CxIterator i = cxListIterator(proplist); | 417 CxIterator i = cxListIterator(proplist); |
418 cx_foreach(DavProperty*, p, i) { | 418 cx_foreach(DavProperty*, p, i) { |
419 free(p->name); | 419 free(p->name); |
420 } | 420 } |
421 cxListDestroy(proplist); | 421 cxListFree(proplist); |
422 } | 422 } |
423 | 423 |
424 return resource; | 424 return resource; |
425 } | 425 } |
426 | 426 |