diff options
author | Sven Neumann <sven@gimp.org> | 2001-09-20 15:05:44 +0000 |
---|---|---|
committer | Sven Neumann <neo@src.gnome.org> | 2001-09-20 15:05:44 +0000 |
commit | cab449096df5d3e2029719ab212ea3701e9f3b87 (patch) | |
tree | abd8bb48b0a8d6d05ff35a3e153b7c656a21b85d /pango/fonts.c | |
parent | dcedbae1f26c84d87c48e55bc934025bdabdea9c (diff) | |
download | pango-cab449096df5d3e2029719ab212ea3701e9f3b87.tar.gz |
unset the static_family flag so the family_name gets freed on the next
2001-09-20 Sven Neumann <sven@gimp.org>
* pango/fonts.c (pango_font_description_set_family,
pango_font_description_copy): unset the static_family flag so the
family_name gets freed on the next call.
Diffstat (limited to 'pango/fonts.c')
-rw-r--r-- | pango/fonts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/fonts.c b/pango/fonts.c index 0d0569ef..cb997955 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -108,6 +108,7 @@ pango_font_description_set_family (PangoFontDescription *desc, { desc->family_name = g_strdup (family); desc->mask |= PANGO_FONT_MASK_FAMILY; + desc->static_family = FALSE; } else { @@ -570,6 +571,7 @@ pango_font_description_copy (const PangoFontDescription *desc) *result = *desc; result->family_name = g_strdup (result->family_name); + result->static_family = FALSE; return result; } |