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) { |