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

Function xmlFreeSaveCtxt

ThirdParty/libxml2/vtklibxml2/xmlsave.c:311–320  ·  view source on GitHub ↗

* xmlFreeSaveCtxt: * * Free a saving context, destroying the output in any remaining buffer */

Source from the content-addressed store, hash-verified

309 * Free a saving context, destroying the output in any remaining buffer
310 */
311static void
312xmlFreeSaveCtxt(xmlSaveCtxtPtr ctxt)
313{
314 if (ctxt == NULL) return;
315 if (ctxt->encoding != NULL)
316 xmlFree((char *) ctxt->encoding);
317 if (ctxt->buf != NULL)
318 xmlOutputBufferClose(ctxt->buf);
319 xmlFree(ctxt);
320}
321
322/**
323 * xmlNewSaveCtxt:

Callers 7

xmlNewSaveCtxtFunction · 0.85
xmlSaveToFdFunction · 0.85
xmlSaveToFilenameFunction · 0.85
xmlSaveToBufferFunction · 0.85
xmlSaveToIOFunction · 0.85
xmlSaveCloseFunction · 0.85
xmlSaveFinishFunction · 0.85

Calls 1

xmlOutputBufferCloseFunction · 0.85

Tested by

no test coverage detected