Fix leaky refcounting

svn path=/trunk/netsurf/; revision=13002
This commit is contained in:
John Mark Bell 2011-10-08 10:42:13 +00:00
parent f14184ee1d
commit 165cca27b0
1 changed files with 12 additions and 0 deletions

View File

@ -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;
}