summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <Michael Drake tlsa@netsurf-browser.org>2021-05-08 18:01:42 +0100
committerMichael Drake <Michael Drake tlsa@netsurf-browser.org>2021-05-08 18:01:42 +0100
commitbe9acc6c80dfc41974425824b77585e45e4498e9 (patch)
tree65a317a5141bcf0b04dd7c63a0abd0e73244469b
parent44225e55530fa5fb0199b369f3d1eb2eac4adf80 (diff)
downloadlibcss-be9acc6c80dfc41974425824b77585e45e4498e9.tar.gz
libcss-be9acc6c80dfc41974425824b77585e45e4498e9.tar.bz2
parse: Squash leak of system font names.
-rw-r--r--src/parse/properties/font.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parse/properties/font.c b/src/parse/properties/font.c
index fce4012..681c613 100644
--- a/src/parse/properties/font.c
+++ b/src/parse/properties/font.c
@@ -290,6 +290,9 @@ css_error css__parse_font(css_language *c,
error = parse_system_font(c, result, &system_font);
+ lwc_string_unref(system_font.family);
+ system_font.family = NULL;
+
if (error == CSS_OK)
parserutils_vector_iterate(vector, ctx);