65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
CFWMap *map = ptr;
uint32_t i;
for (i = 0; i < map->size; i++) {
if (map->data[i] != NULL && map->data[i] != &deleted) {
cfw_unref(map->data[i]->key);
cfw_unref(map->data[i]->obj);
}
}
if (map->data != NULL)
free(map->data);
}
|
>
|
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
CFWMap *map = ptr;
uint32_t i;
for (i = 0; i < map->size; i++) {
if (map->data[i] != NULL && map->data[i] != &deleted) {
cfw_unref(map->data[i]->key);
cfw_unref(map->data[i]->obj);
free(map->data[i]);
}
}
if (map->data != NULL)
free(map->data);
}
|