diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-10-15 20:09:35 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-10-15 20:09:35 +0000 |
commit | 19679486980a281d865b0050bd15982629ccbb70 (patch) | |
tree | d646ece7656740fb724b8cd346112b6f9129d222 /pango/pangowin32-fontmap.c | |
parent | dbfb45f099464dc1eb44c23d8a0928e408f2d259 (diff) | |
download | pango-19679486980a281d865b0050bd15982629ccbb70.tar.gz |
Bug 483600 – Leak of font family name inPANGO_1_18_3
2007-10-15 Behdad Esfahbod <behdad@gnome.org>
Bug 483600 – Leak of font family name in
pango_win32_font_description_from_logfont(w)
Patch from Daniel Atallah
* pango/pangowin32-fontmap.c
(pango_win32_font_description_from_logfont),
(pango_win32_font_description_from_logfontw):
Free family.
svn path=/trunk/; revision=2446
Diffstat (limited to 'pango/pangowin32-fontmap.c')
-rw-r--r-- | pango/pangowin32-fontmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c index 0f79dd7f..1df24751 100644 --- a/pango/pangowin32-fontmap.c +++ b/pango/pangowin32-fontmap.c @@ -786,6 +786,7 @@ pango_win32_font_description_from_logfont (const LOGFONT *lfp) description = pango_font_description_new (); pango_font_description_set_family (description, family); + g_free(family); pango_font_description_set_style (description, style); pango_font_description_set_weight (description, weight); pango_font_description_set_stretch (description, stretch); @@ -981,6 +982,7 @@ pango_win32_font_description_from_logfontw (const LOGFONTW *lfp) description = pango_font_description_new (); pango_font_description_set_family (description, family); + g_free(family); pango_font_description_set_style (description, style); pango_font_description_set_weight (description, weight); pango_font_description_set_stretch (description, stretch); |