term: log error when failing to initialize the primary fonts

This commit is contained in:
Daniel Eklöf 2020-02-09 16:56:59 +01:00
parent f751a213d5
commit d6ef3c02fb
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -538,6 +538,7 @@ initialize_fonts(const struct terminal *term, const struct config *conf,
(fonts[3] = font_from_name(count, names, attrs3)) != NULL;
if (!ret) {
LOG_ERR("failed to load primary fonts");
for (size_t i = 0; i < 4; i++) {
font_destroy(fonts[i]);
fonts[i] = NULL;