From 0bfb1d7742608aff2687a522112a860f6ff8c2ca Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Wed, 4 Jan 2006 00:29:10 +0100 Subject: [PATCH] Free nodes created on the SGML parsing stack --- src/dom/sgml/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom/sgml/parser.c b/src/dom/sgml/parser.c index 594a927d..84bd1f7e 100644 --- a/src/dom/sgml/parser.c +++ b/src/dom/sgml/parser.c @@ -566,7 +566,7 @@ init_sgml_parser(enum sgml_parser_type type, enum sgml_document_type doctype, add_dom_stack_context(&parser->stack, parser, &sgml_parser_context_info); /* Don't keep the 'fake' text nodes that holds the parsing data. */ - init_dom_stack(&parser->parsing, 0); + init_dom_stack(&parser->parsing, DOM_STACK_FLAG_FREE_NODES); add_dom_stack_context(&parser->parsing, parser, &sgml_parsing_context_info); return parser;