---------------------------------------------------------------------------*/ * This routine frees all memory which is allocated to the * specified KD-tree. This includes the data structure for * the kd-tree itself plus the data structures for each node * in the tree. It does not include the Key and Data items * which are pointed to by the nodes. This memory is left * untouched. * @param
| 348 | * @note History: 5/26/89, DSJ, Created. |
| 349 | */ |
| 350 | void FreeKDTree(KDTREE *Tree) { |
| 351 | FreeSubTree(Tree->Root.Left); |
| 352 | memfree(Tree); |
| 353 | } /* FreeKDTree */ |
| 354 | |
| 355 | |
| 356 | /*----------------------------------------------------------------------------- |
no test coverage detected