destroy memory of the cluster finalized list (without recursion) */
| 338 | |
| 339 | /* destroy memory of the cluster finalized list (without recursion) */ |
| 340 | static void clusterTreeNodeDestroyList(msClusterLayerInfo* layerinfo, clusterTreeNode *node) |
| 341 | { |
| 342 | clusterTreeNode* n = node; |
| 343 | clusterTreeNode* next; |
| 344 | /* destroy the list of nodes */ |
| 345 | while (n) |
| 346 | { |
| 347 | next = n->subnode[0]; |
| 348 | n->subnode[0] = NULL; |
| 349 | clusterTreeNodeDestroy(layerinfo, n); |
| 350 | --layerinfo->numFinalizedNodes; |
| 351 | n = next; |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | void clusterDestroyData(msClusterLayerInfo *layerinfo) |
| 356 | { |
no test coverage detected