Commit 20c5e787 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

applied patch from Alfred Mickautsch fixing a memory leak reported on the

* xmlwriter.c: applied patch from Alfred Mickautsch fixing a memory
  leak reported on the list.
Daniel
parent 4f4a27f9
Wed Jan 21 10:59:55 CET 2004 Daniel Veillard <daniel@veillard.com>
* xmlwriter.c: applied patch from Alfred Mickautsch fixing a memory
leak reported on the list.
Thu Jan 15 00:48:46 CET 2004 Daniel Veillard <daniel@veillard.com>
 
* python/generator.py python/tests/tstLastError.py: applied
......
......@@ -65,6 +65,7 @@ struct _xmlTextWriter {
int doindent; /* internal indent flag */
xmlChar *ichar; /* indent character */
char qchar; /* character used for quoting attribute values */
xmlParserCtxtPtr ctxt;
};
static void xmlFreeTextWriterStackEntry(xmlLinkPtr lk);
......@@ -249,6 +250,8 @@ xmlNewTextWriterPushParser(xmlParserCtxtPtr ctxt,
return NULL;
}
ret->ctxt = ctxt;
return ret;
}
......@@ -373,6 +376,9 @@ xmlFreeTextWriter(xmlTextWriterPtr writer)
if (writer->nsstack != NULL)
xmlListDelete(writer->nsstack);
if (writer->ctxt != NULL)
xmlFreeParserCtxt(writer->ctxt);
xmlFree(writer);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment