diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2008-05-03 17:27:49 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2008-05-03 17:27:49 +0000 |
commit | c75a2817f82b931864d8966e4ce158d5f8183b07 (patch) | |
tree | 9ed1327c038eec143603a4090d47c0bc8d4c967c | |
parent | f648f4e73108e6b61d6f390c5c17585ed28b818f (diff) | |
download | pango-c75a2817f82b931864d8966e4ce158d5f8183b07.tar.gz |
Bug 531242 – Leak when calculating win32 font coverage Patch from Daniel
2008-05-03 Behdad Esfahbod <behdad@gnome.org>
Bug 531242 – Leak when calculating win32 font coverage
Patch from Daniel Atallah
* pango/pangowin32.c (pango_win32_font_calc_coverage): Plug leak.
svn path=/branches/pango-1-20/; revision=2624
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | pango/pangowin32.c | 9 |
2 files changed, 14 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2008-05-03 Behdad Esfahbod <behdad@gnome.org> + + Bug 531242 – Leak when calculating win32 font coverage + Patch from Daniel Atallah + + * pango/pangowin32.c (pango_win32_font_calc_coverage): Plug leak. + 2008-04-09 Behdad Esfahbod <behdad@gnome.org> * === Released 1.20.2 === diff --git a/pango/pangowin32.c b/pango/pangowin32.c index d3759fb7..4304140e 100644 --- a/pango/pangowin32.c +++ b/pango/pangowin32.c @@ -1709,10 +1709,15 @@ pango_win32_font_calc_coverage (PangoFont *font, guint32 i; PangoWin32CoverageLanguageClass cjkv; gboolean hide_unihan = FALSE; + PangoFontDescription *desc; + gchar *name; - PING(("font:%s lang:%s", - pango_font_description_to_string (pango_font_describe (font)), + desc = pango_font_describe (font); + name = pango_font_description_to_string (desc); + PING(("font:%s lang:%s", name, pango_language_to_string (lang))); + g_free (name); + pango_font_description_free (desc); if (win32font->win32face->has_cmap) { |