mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-29 15:41:13 +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:
@ -1,3 +1,8 @@
|
|||||||
|
Fri Dec 22 09:12:08 PST 2006 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
|
* python/libxslt.c: applied patch supplied by Kjartan Maraas
|
||||||
|
(bug #388567).
|
||||||
|
|
||||||
Mon Dec 11 14:38:22 PST 2006 William Brack <wbrack@mmm.com.hk>
|
Mon Dec 11 14:38:22 PST 2006 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
* libexslt/functions.c: further enhancement to the original
|
* libexslt/functions.c: further enhancement to the original
|
||||||
|
@ -516,7 +516,7 @@ pythonDocLoaderFuncWrapper(const xmlChar * URI, xmlDictPtr dict, int options,
|
|||||||
xsltLoadType type ATTRIBUTE_UNUSED)
|
xsltLoadType type ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
xmlParserCtxtPtr pctxt;
|
xmlParserCtxtPtr pctxt;
|
||||||
xmlDocPtr doc;
|
xmlDocPtr doc=NULL;
|
||||||
|
|
||||||
pctxt = xmlNewParserCtxt();
|
pctxt = xmlNewParserCtxt();
|
||||||
if (pctxt == NULL)
|
if (pctxt == NULL)
|
||||||
@ -570,9 +570,9 @@ pythonDocLoaderFuncWrapper(const xmlChar * URI, xmlDictPtr dict, int options,
|
|||||||
if (! pctxt->wellFormed) {
|
if (! pctxt->wellFormed) {
|
||||||
if (doc != NULL) {
|
if (doc != NULL) {
|
||||||
xmlFreeDoc(doc);
|
xmlFreeDoc(doc);
|
||||||
|
doc = NULL;
|
||||||
}
|
}
|
||||||
if (pctxt->myDoc != NULL) {
|
if (pctxt->myDoc != NULL) {
|
||||||
doc = NULL;
|
|
||||||
xmlFreeDoc(pctxt->myDoc);
|
xmlFreeDoc(pctxt->myDoc);
|
||||||
pctxt->myDoc = NULL;
|
pctxt->myDoc = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user