1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

parser: Reenable ctxt->directory

Unused internally, but used in downstream code.

Should fix #753.
This commit is contained in:
Nick Wellnhofer
2024-07-02 21:54:26 +02:00
parent c127c89f98
commit fdfeecfe5e
3 changed files with 32 additions and 1 deletions

View File

@@ -6184,6 +6184,12 @@ htmlCtxtReset(htmlParserCtxtPtr ctxt)
ctxt->extSubURI = NULL;
DICT_FREE(ctxt->extSubSystem);
ctxt->extSubSystem = NULL;
if (ctxt->directory != NULL) {
xmlFree(ctxt->directory);
ctxt->directory = NULL;
}
if (ctxt->myDoc != NULL)
xmlFreeDoc(ctxt->myDoc);
ctxt->myDoc = NULL;