summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2014-01-05 14:51:30 (GMT)
committer Daniel Silverstone <dsilvers@digital-scurf.org>2014-01-05 14:51:30 (GMT)
commit1e38192e17e7003bf464beaedd3743d883c8d51c (patch)
tree5c6987ff77d758531edec15e110936098dc41f7c
parent44d4e3255c5a2e6c6517c06e8eb3e88eaa20d657 (diff)
downloadlibdom-1e38192e17e7003bf464beaedd3743d883c8d51c.tar.gz
libdom-1e38192e17e7003bf464beaedd3743d883c8d51c.tar.bz2
Unref the form's collection on finalise
-rw-r--r--src/html/html_form_element.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/html/html_form_element.c b/src/html/html_form_element.c
index 808383d..8ce94ab 100644
--- a/src/html/html_form_element.c
+++ b/src/html/html_form_element.c
@@ -82,6 +82,9 @@ dom_exception _dom_html_form_element_initialise(struct dom_html_document *doc,
*/
void _dom_html_form_element_finalise(struct dom_html_form_element *ele)
{
+ if (ele->col != NULL)
+ dom_html_collection_unref(ele->col);
+
_dom_html_element_finalise(&ele->base);
}