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