diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2008-05-03 16:26:18 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2008-05-03 16:26:18 +0000 |
commit | a96ea71eaaa571f5f9fdbd5e832480c963470f6c (patch) | |
tree | 3f9ab8ce338f1a2aee0e11814bb4e50159a8c9f1 | |
parent | c9e8fefdb412b983c1a8a809683cba05bd570164 (diff) | |
download | pango-a96ea71eaaa571f5f9fdbd5e832480c963470f6c.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=/trunk/; revision=2623
-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-30 Behdad Esfahbod <behdad@gnome.org> Bug 530757 – Docs build breaks because of hash sign in URL in <ulink...> 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) { |