summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/dom-structure-dump.c6
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++) {