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

Function xmlXPtrFreeLocationSet

ThirdParty/libxml2/vtklibxml2/xpointer.c:730–742  ·  view source on GitHub ↗

* xmlXPtrFreeLocationSet: * @obj: the xmlLocationSetPtr to free * * Free the LocationSet compound (not the actual ranges !). */

Source from the content-addressed store, hash-verified

728 * Free the LocationSet compound (not the actual ranges !).
729 */
730void
731xmlXPtrFreeLocationSet(xmlLocationSetPtr obj) {
732 int i;
733
734 if (obj == NULL) return;
735 if (obj->locTab != NULL) {
736 for (i = 0;i < obj->locNr; i++) {
737 xmlXPathFreeObject(obj->locTab[i]);
738 }
739 xmlFree(obj->locTab);
740 }
741 xmlFree(obj);
742}
743
744/**
745 * xmlXPtrNewLocationSetNodes:

Callers 2

xmlXPtrEndPointFunctionFunction · 0.70

Calls 1

xmlXPathFreeObjectFunction · 0.85

Tested by

no test coverage detected