MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlXPathFreeNodeSet

Function xmlXPathFreeNodeSet

ThirdParty/libxml2/vtklibxml2/xpath.c:3295–3309  ·  view source on GitHub ↗

* xmlXPathFreeNodeSet: * @obj: the xmlNodeSetPtr to free * * Free the NodeSet compound (not the actual nodes !). */

Source from the content-addressed store, hash-verified

3293 * Free the NodeSet compound (not the actual nodes !).
3294 */
3295void
3296xmlXPathFreeNodeSet(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:

Callers 15

xmlXPathNodeSetCreateFunction · 0.85
xmlXPathNodeSetMergeFunction · 0.85
xmlXPathWrapNodeSetFunction · 0.85
xmlXPathDifferenceFunction · 0.85
xmlXPathIntersectionFunction · 0.85
xmlXPathDistinctSortedFunction · 0.85
xmlXPathFreeObjectFunction · 0.85
xmlXPathReleaseObjectFunction · 0.85

Calls 1

xmlXPathNodeSetFreeNsFunction · 0.85

Tested by

no test coverage detected