diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2010-12-05 17:19:09 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2010-12-05 17:19:09 +0000 |
commit | 3865f7ef3988bd40023e5e470b1ad551e8ef7a8e (patch) | |
tree | e7dc5abef01d15d562158aa11aba42294bba7bd1 /examples | |
parent | e420204621aba7b66e4302ab943d8158e4c3600e (diff) | |
download | libdom-3865f7ef3988bd40023e5e470b1ad551e8ef7a8e.tar.gz libdom-3865f7ef3988bd40023e5e470b1ad551e8ef7a8e.tar.bz2 |
Unref dom_strings. Still need to unref the nodes.
svn path=/trunk/dom/; revision=11010
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dom-structure-dump.c | 6 |
1 files changed, 6 insertions, 0 deletions
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++) { |