libidav/resource.c

changeset 348
b79fb94f9e0a
parent 331
9ca1e4706acc
child 349
0b4ecadaf3f9
equal deleted inserted replaced
347:b6ff6be7aa91 348:b79fb94f9e0a
119 return res; 119 return res;
120 } 120 }
121 121
122 void resource_free_properties(DavSession *sn, UcxMap *properties) { 122 void resource_free_properties(DavSession *sn, UcxMap *properties) {
123 UcxMapIterator i = ucx_map_iterator(properties); 123 UcxMapIterator i = ucx_map_iterator(properties);
124 char *property; 124 DavXmlNode *node;
125 UCX_MAP_FOREACH(key, property, i) { 125 UCX_MAP_FOREACH(key, node, i) {
126 dav_session_free(sn, property); 126 // TODO: free everything
127 dav_session_free(sn, node);
127 } 128 }
128 ucx_map_free(properties); 129 ucx_map_free(properties);
129 } 130 }
130 131
131 void dav_resource_free(DavResource *res) { 132 void dav_resource_free(DavResource *res) {

mercurial