< index < 15. Heightmap toolkit < 15.4 Reading data from the heightmap | ===================================== 15.5 Destroying a heightmap ===================================== |

To release the resources used by a heightmap, destroy it with :

    C++ : TCODHeightMap::~TCODHeightMap()
    C   : void TCOD_heightmap_delete(TCOD_heightmap_t *hm)
    Py  : heightmap_delete(hm)

Parameter | Description
--- | ---
hm | In the C version, the address of the heightmap struct returned by the creation function.