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 | 84e2eabdcca1939a4d80ef50f674f02e6293dcdf (patch) | |
tree | e7dc5abef01d15d562158aa11aba42294bba7bd1 /examples | |
parent | 69ca35f30f583c821d3f0b216d2081800d9d37d5 (diff) | |
download | libdom-84e2eabdcca1939a4d80ef50f674f02e6293dcdf.tar.gz libdom-84e2eabdcca1939a4d80ef50f674f02e6293dcdf.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++) { |