summaryrefslogtreecommitdiff
path: root/render/html.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-10-08 10:42:13 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-10-08 10:42:13 +0000
commit165cca27b0567c9ccf272f9f5b864e1a2177df37 (patch)
tree26a1b3f5a5820bd5981053149d9908f13e6dacd8 /render/html.c
parentf14184ee1dac5bc5dc1abfa379e7e4c28dcf3074 (diff)
downloadnetsurf-165cca27b0567c9ccf272f9f5b864e1a2177df37.tar.gz
netsurf-165cca27b0567c9ccf272f9f5b864e1a2177df37.tar.bz2
Fix leaky refcounting
svn path=/trunk/netsurf/; revision=13002
Diffstat (limited to 'render/html.c')
-rw-r--r--render/html.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/render/html.c b/render/html.c
index 205469934..ad0c7f4f2 100644
--- a/render/html.c
+++ b/render/html.c
@@ -821,6 +821,18 @@ static bool html_process_link(html_content *c, xmlNode *node)
/* add to content */
content__add_rfc5988_link(&c->base, &link);
+ if (link.sizes != NULL)
+ lwc_string_unref(link.sizes);
+ if (link.media != NULL)
+ lwc_string_unref(link.media);
+ if (link.type != NULL)
+ lwc_string_unref(link.type);
+ if (link.hreflang != NULL)
+ lwc_string_unref(link.hreflang);
+
+ nsurl_unref(link.href);
+ lwc_string_unref(link.rel);
+
return true;
}