aboutsummaryrefslogtreecommitdiffstats
path: root/libskrift_close_font.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-08-18 00:17:42 +0200
committerMattias Andrée <maandree@kth.se>2021-08-18 00:17:42 +0200
commitbbec322f1c7079c0186ea3242085b4ff8267d825 (patch)
tree3f62487f71a88c74590409dc834062c58af37154 /libskrift_close_font.c
parentAdd support for gzip compression and prepare for PSF support (diff)
downloadlibskrift-bbec322f1c7079c0186ea3242085b4ff8267d825.tar.gz
libskrift-bbec322f1c7079c0186ea3242085b4ff8267d825.tar.bz2
libskrift-bbec322f1c7079c0186ea3242085b4ff8267d825.tar.xz
Small fixes + other font types should be handled via conversion
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libskrift_close_font.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libskrift_close_font.c b/libskrift_close_font.c
index c665cdb..2786666 100644
--- a/libskrift_close_font.c
+++ b/libskrift_close_font.c
@@ -5,8 +5,7 @@ void
libskrift_close_font(LIBSKRIFT_FONT *font)
{
if (font && !--font->refcount) {
- if (font->font_type == FONT_TYPE_SCHRIFT)
- sft_freefont(font->font.schrift);
+ sft_freefont(font->font);
free(font->memory_free);
if (font->memory_unmap)
munmap(font->memory_unmap, font->memory_size);