* xmlXPathFreeNodeSet: * @obj: the xmlNodeSetPtr to free * * Free the NodeSet compound (not the actual nodes !). */
| 3293 | * Free the NodeSet compound (not the actual nodes !). |
| 3294 | */ |
| 3295 | void |
| 3296 | xmlXPathFreeNodeSet(xmlNodeSetPtr obj) { |
| 3297 | if (obj == NULL) return; |
| 3298 | if (obj->nodeTab != NULL) { |
| 3299 | int i; |
| 3300 | |
| 3301 | /* @@ with_ns to check whether namespace nodes should be looked at @@ */ |
| 3302 | for (i = 0;i < obj->nodeNr;i++) |
| 3303 | if ((obj->nodeTab[i] != NULL) && |
| 3304 | (obj->nodeTab[i]->type == XML_NAMESPACE_DECL)) |
| 3305 | xmlXPathNodeSetFreeNs((xmlNsPtr) obj->nodeTab[i]); |
| 3306 | xmlFree(obj->nodeTab); |
| 3307 | } |
| 3308 | xmlFree(obj); |
| 3309 | } |
| 3310 | |
| 3311 | /** |
| 3312 | * xmlXPathNodeSetClearFromPos: |
no test coverage detected