diff options
author | Mattias Andrée <maandree@kth.se> | 2021-08-17 17:44:35 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-08-17 17:44:35 +0200 |
commit | 6b8fc61b772b394d7a205531b492101c519dc47d (patch) | |
tree | 85d441e2de4d57e9432a5d0173aa48c214ebb39c /libskrift_close_font.c | |
parent | m (diff) | |
download | libskrift-6b8fc61b772b394d7a205531b492101c519dc47d.tar.gz libskrift-6b8fc61b772b394d7a205531b492101c519dc47d.tar.bz2 libskrift-6b8fc61b772b394d7a205531b492101c519dc47d.tar.xz |
Add support for gzip compression and prepare for PSF support
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libskrift_close_font.c')
-rw-r--r-- | libskrift_close_font.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libskrift_close_font.c b/libskrift_close_font.c index 2786666..c665cdb 100644 --- a/libskrift_close_font.c +++ b/libskrift_close_font.c @@ -5,7 +5,8 @@ void libskrift_close_font(LIBSKRIFT_FONT *font) { if (font && !--font->refcount) { - sft_freefont(font->font); + if (font->font_type == FONT_TYPE_SCHRIFT) + sft_freefont(font->font.schrift); free(font->memory_free); if (font->memory_unmap) munmap(font->memory_unmap, font->memory_size); |