1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-06-30 02:21:44 +03:00

applied patch supplied by Kjartan Maraas (bug #388567).

* python/libxslt.c: applied patch supplied by Kjartan Maraas
  (bug #388567).
This commit is contained in:
William M. Brack
2006-12-22 17:12:57 +00:00
parent 78811a9c07
commit c2d91bc1cb
2 changed files with 7 additions and 2 deletions

View File

@ -516,7 +516,7 @@ pythonDocLoaderFuncWrapper(const xmlChar * URI, xmlDictPtr dict, int options,
xsltLoadType type ATTRIBUTE_UNUSED)
{
xmlParserCtxtPtr pctxt;
xmlDocPtr doc;
xmlDocPtr doc=NULL;
pctxt = xmlNewParserCtxt();
if (pctxt == NULL)
@ -570,9 +570,9 @@ pythonDocLoaderFuncWrapper(const xmlChar * URI, xmlDictPtr dict, int options,
if (! pctxt->wellFormed) {
if (doc != NULL) {
xmlFreeDoc(doc);
doc = NULL;
}
if (pctxt->myDoc != NULL) {
doc = NULL;
xmlFreeDoc(pctxt->myDoc);
pctxt->myDoc = NULL;
}