mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-02-15 17:57:33 +03:00
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
This commit is contained in:
parent
4f4a27f970
commit
20c5e7878d
@ -1,3 +1,8 @@
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user