From 52b78d526b522f95897bfcb4d9652ea328fbdb6a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 18 Jan 2023 23:06:08 -0700 Subject: [PATCH] [hb-view] Fix leak --- util/helper-cairo.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/util/helper-cairo.hh b/util/helper-cairo.hh index 4d6468f2b..d25372240 100644 --- a/util/helper-cairo.hh +++ b/util/helper-cairo.hh @@ -135,6 +135,7 @@ helper_cairo_create_scaled_font (const font_options_t *font_opts) if (sscanf (entries[i], "%u:%2x%2x%2x%2x", &idx, &fr, &fg, &fb, &fa) == 5) cairo_font_options_set_custom_palette_color (font_options, idx, fr / 255., fg / 255., fb / 255., fa / 255.); } + g_strfreev (entries); } #endif cairo_font_options_set_color_palette (font_options, palette_index);