diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2021-05-08 18:01:42 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2021-05-19 14:40:26 +0100 |
commit | f752713d07424217170c6fbf85789bd58d92f924 (patch) | |
tree | 65a317a5141bcf0b04dd7c63a0abd0e73244469b | |
parent | a0a52eb724f62d0df68c104108526e84148710bb (diff) | |
download | libcss-f752713d07424217170c6fbf85789bd58d92f924.tar.gz libcss-f752713d07424217170c6fbf85789bd58d92f924.tar.bz2 |
parse: Squash leak of system font names.
-rw-r--r-- | src/parse/properties/font.c | 3 |
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); |