summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog11
-rw-r--r--pango/pangowin32-fontmap.c2
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c2556a18..d61076c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
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.
+
+2007-10-15 Behdad Esfahbod <behdad@gnome.org>
+
Bug 486932 – Apply vkrn GPOS feature in vertical writing
* modules/basic/basic-fc.c (basic_engine_shape): Apply vkrn
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);