* xmlXPtrFreeLocationSet: * @obj: the xmlLocationSetPtr to free * * Free the LocationSet compound (not the actual ranges !). */
| 728 | * Free the LocationSet compound (not the actual ranges !). |
| 729 | */ |
| 730 | void |
| 731 | xmlXPtrFreeLocationSet(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: |
no test coverage detected