summaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2018-08-03 12:15:38 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2018-08-03 12:19:26 +0100
commit4d1731bba2d6091e25c7d1d57b0e547c8ac30db9 (patch)
tree131c0d743ac80ac02861f8492fff653fcc9d4c97 /src/html
parent4e75ebae52fc71336141f95dc83971b51002a104 (diff)
downloadlibdom-4d1731bba2d6091e25c7d1d57b0e547c8ac30db9.tar.gz
libdom-4d1731bba2d6091e25c7d1d57b0e547c8ac30db9.tar.bz2
dom_html_table_row_element_get_row_index: Squash t_head node leak.
Diffstat (limited to 'src/html')
-rw-r--r--src/html/html_tablerow_element.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/html/html_tablerow_element.c b/src/html/html_tablerow_element.c
index b722d0d..587edd4 100644
--- a/src/html/html_tablerow_element.c
+++ b/src/html/html_tablerow_element.c
@@ -244,15 +244,13 @@ dom_exception dom_html_table_row_element_get_row_index(
return exp;
}
- exp = dom_html_table_section_element_get_rows(t_head,
- &rows);
+ exp = dom_html_table_section_element_get_rows(t_head, &rows);
+ dom_node_unref(t_head);
if (exp != DOM_NO_ERR) {
- dom_node_unref(t_head);
return exp;
}
- dom_html_collection_get_length(rows,
- &len);
+ dom_html_collection_get_length(rows, &len);
dom_html_collection_unref(rows);
count += len;