summaryrefslogtreecommitdiff
path: root/pango/pangowin32-fontmap.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-10-15 20:09:35 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-10-15 20:09:35 +0000
commit19679486980a281d865b0050bd15982629ccbb70 (patch)
treed646ece7656740fb724b8cd346112b6f9129d222 /pango/pangowin32-fontmap.c
parentdbfb45f099464dc1eb44c23d8a0928e408f2d259 (diff)
downloadpango-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.c2
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);