From 3865f7ef3988bd40023e5e470b1ad551e8ef7a8e Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 5 Dec 2010 17:19:09 +0000 Subject: Unref dom_strings. Still need to unref the nodes. svn path=/trunk/dom/; revision=11010 --- examples/dom-structure-dump.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples/dom-structure-dump.c') diff --git a/examples/dom-structure-dump.c b/examples/dom-structure-dump.c index ee4830f..b7eb8df 100644 --- a/examples/dom-structure-dump.c +++ b/examples/dom-structure-dump.c @@ -188,6 +188,9 @@ bool dump_dom_element_class(dom_node_internal *node) return false; } + /* Finished with the classvalue dom_string */ + dom_string_unref(classvalue); + /* Get string data and print class info */ string = lwc_string_data(lwcstr); length = lwc_string_length(lwcstr); @@ -244,6 +247,9 @@ bool dump_dom_element(dom_node_internal *node, int depth) return false; } + /* Finished with the node_name dom_string */ + dom_string_unref(node_name); + /* Print ASCII tree structure for current node */ if (depth > 0) { for (i = 0; i < depth; i++) { -- cgit v1.2.3