202 } |
202 } |
203 |
203 |
204 /** |
204 /** |
205 * Deallocates the memory of the specified map. |
205 * Deallocates the memory of the specified map. |
206 * |
206 * |
207 * @param map the map to be destroyed |
207 * @param map the map to be freed |
208 */ |
208 */ |
209 static inline void cxMapDestroy(CxMap *map) { |
209 static inline void cxMapFree(CxMap *map) { |
210 if (map == NULL) return; |
210 if (map == NULL) return; |
211 map->cl->destructor(map); |
211 map->cl->deallocate(map); |
212 } |
212 } |
213 |
213 |
214 |
214 |
215 /** |
215 /** |
216 * Clears a map by removing all elements. |
216 * Clears a map by removing all elements. |