* xmlFreeStreamCtxt: * @stream: the stream context * * Free the stream context */
| 1715 | * Free the stream context |
| 1716 | */ |
| 1717 | void |
| 1718 | xmlFreeStreamCtxt(xmlStreamCtxtPtr stream) { |
| 1719 | xmlStreamCtxtPtr next; |
| 1720 | |
| 1721 | while (stream != NULL) { |
| 1722 | next = stream->next; |
| 1723 | if (stream->states != NULL) |
| 1724 | xmlFree(stream->states); |
| 1725 | xmlFree(stream); |
| 1726 | stream = next; |
| 1727 | } |
| 1728 | } |
| 1729 | |
| 1730 | /** |
| 1731 | * xmlStreamCtxtAddState: |
no outgoing calls