summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-05 14:02:30 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-07-05 14:02:30 +0000
commit05750deb6fbab92a1635b00085f819c96eafb38f (patch)
treefb89b1de24b4201ea3c7deb1e3174d0f3d56674a
parent0b6e7feae0f9543d7ed59c77b6be77b453a23e44 (diff)
downloadpango-05750deb6fbab92a1635b00085f819c96eafb38f.tar.gz
coretext: Plug a memory leak
Patch by Alan Wang. Closes: https://gitlab.gnome.org/GNOME/pango/issues/281
-rw-r--r--pango/pangocoretext-fontmap.c3
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)