diff options
author | 3 <alexl@redhat.com> | 2001-01-23 11:25:52 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2001-01-23 11:25:52 +0000 |
commit | ff7d31690c238cfdf8ed7d071cd34621a2dd7bb2 (patch) | |
tree | 9fc3d74df173e73c7315610731d93d4ece0df9e0 /modules | |
parent | f685b8e639f4c28c49be358b62f85d0ccfa1415f (diff) | |
download | pango-ff7d31690c238cfdf8ed7d071cd34621a2dd7bb2.tar.gz |
Don't leak PangoCoverage. Move name free closer to allocation.
2001-01-23 <alexl@redhat.com>
* modules/basic/basic-ft2.c (basic_engine_get_coverage):
Don't leak PangoCoverage.
* pango/pangoft2-fontmap.c (pango_ft2_font_map_load_font):
Move name free closer to allocation.
(pango_ft2_font_map_read_alias_file): Don't leak faces.
(pango_ft2_font_entry_get_coverage): Don't leak font as
filename and cache_file_name.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/basic/basic-ft2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/basic/basic-ft2.c b/modules/basic/basic-ft2.c index 10a9bec2..01218dc5 100644 --- a/modules/basic/basic-ft2.c +++ b/modules/basic/basic-ft2.c @@ -285,10 +285,12 @@ static PangoCoverage * basic_engine_get_coverage (PangoFont *font, const char *lang) { - PangoCoverage *result = pango_coverage_new (); + PangoCoverage *result; #if 0 gunichar wc; + result = pango_coverage_new (); + for (wc = 0; wc < 65536; wc++) if (find_char (font, wc)) pango_coverage_set (result, wc, PANGO_COVERAGE_EXACT); |