[pango] coretext: Plug a memory leak



commit 05750deb6fbab92a1635b00085f819c96eafb38f
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 5 14:02:30 2019 +0000

    coretext: Plug a memory leak
    
    Patch by Alan Wang.
    
    Closes: https://gitlab.gnome.org/GNOME/pango/issues/281

 pango/pangocoretext-fontmap.c | 3 +++
 1 file changed, 3 insertions(+)
---
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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]