summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;