From a7c2f14e6d0d3753ca0b5fd3e149d6f12492bba5 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 12 Feb 2009 09:48:04 +0100 Subject: [PATCH] bug 1067: the node was freed, but still used. --- NEWS | 1 + src/document/dom/renderer.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 9ce8b23a1..b47b0eba7 100644 --- a/NEWS +++ b/NEWS @@ -34,6 +34,7 @@ Other changes: * minor bug 761: When reading bookmarks from an XBEL file, distinguish attribute names from attribute values. * enhancement: Updated ISO 8859-7, ISO 8859-16, KOI8-R, and MacRoman. +* critical: bug 1067: crash in call_dom_stack_callbacks with RSS ELinks 0.12pre2: ---------------- diff --git a/src/document/dom/renderer.c b/src/document/dom/renderer.c index 746e3aab8..35ac48108 100644 --- a/src/document/dom/renderer.c +++ b/src/document/dom/renderer.c @@ -947,9 +947,7 @@ dom_rss_pop_document(struct dom_stack *stack, struct dom_node *root, void *data) done_dom_string(&renderer->text); mem_free_if(renderer->items); - done_dom_node(root); - - return DOM_CODE_OK; + return DOM_CODE_FREE_NODE; }