diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-05 14:02:30 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-05 14:02:30 +0000 |
commit | 05750deb6fbab92a1635b00085f819c96eafb38f (patch) | |
tree | fb89b1de24b4201ea3c7deb1e3174d0f3d56674a /pango/pangocoretext-fontmap.c | |
parent | 0b6e7feae0f9543d7ed59c77b6be77b453a23e44 (diff) | |
download | pango-05750deb6fbab92a1635b00085f819c96eafb38f.tar.gz |
coretext: Plug a memory leak
Patch by Alan Wang.
Closes: https://gitlab.gnome.org/GNOME/pango/issues/281
Diffstat (limited to 'pango/pangocoretext-fontmap.c')
-rw-r--r-- | pango/pangocoretext-fontmap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c index 427e9a0f..dae0c136 100644 --- a/pango/pangocoretext-fontmap.c +++ b/pango/pangocoretext-fontmap.c @@ -1385,6 +1385,9 @@ pango_core_text_font_map_load_fontset (PangoFontMap *fontmap, g_error ("Could not load fallback font, bailing out."); } } + + if (tmp_desc) + pango_font_description_free (tmp_desc); } if (insert_in_hash) |