1.1 --- a/ucx/map.c Thu Oct 15 14:21:38 2015 +0200 1.2 +++ b/ucx/map.c Thu Oct 15 14:59:25 2015 +0200 1.3 @@ -82,11 +82,11 @@ 1.4 alfree(map->allocator, map); 1.5 } 1.6 1.7 -void ucx_map_free_content(UcxMap *map) { 1.8 +void ucx_map_free_content(UcxMap *map, ucx_destructor destr) { 1.9 UcxMapIterator iter = ucx_map_iterator(map); 1.10 void *val; 1.11 UCX_MAP_FOREACH(key, val, iter) { 1.12 - free(val); 1.13 + destr(val); 1.14 } 1.15 } 1.16