diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2018-08-03 13:33:35 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2018-08-03 13:33:35 +0100 |
commit | 584be5d50fa206e2d8772db4b3b5c231efc41c66 (patch) | |
tree | 1e78ecb9b6a9e3fa5288537364ed164774abb7dd | |
parent | 4e06242c80836b8c4f2ed442d58dc7f249a36183 (diff) | |
download | libdom-584be5d50fa206e2d8772db4b3b5c231efc41c66.tar.gz libdom-584be5d50fa206e2d8772db4b3b5c231efc41c66.tar.bz2 |
HTMLDocument.body: Squash leak of node list.
-rw-r--r-- | src/html/html_document.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c index 2f219d0..9b749ae 100644 --- a/src/html/html_document.c +++ b/src/html/html_document.c @@ -1119,6 +1119,7 @@ dom_exception _dom_html_document_get_body(dom_html_document *doc, } if (len == 0) { + dom_nodelist_unref(nodes); exc = dom_document_get_elements_by_tag_name(doc, doc->elements[DOM_HTML_ELEMENT_TYPE_FRAMESET], &nodes); |