summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);