aboutsummaryrefslogtreecommitdiffstats
path: root/libskrift_open_font.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libskrift_open_font.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libskrift_open_font.c b/libskrift_open_font.c
index d829a66..fdd5ba9 100644
--- a/libskrift_open_font.c
+++ b/libskrift_open_font.c
@@ -38,13 +38,10 @@ libskrift_open_font(LIBSKRIFT_FONT **fontp, FILE *fp)
mem = new;
errno = saved_errno;
- if (libskrift_open_font_mem(fontp, mem, size)) {
+ if (libskrift_open_font_adopt_mem(fontp, mem, size)) {
free(mem);
return -1;
}
- (*fontp)->memory_free = mem;
- (*fontp)->memory_size = size;
-
return 0;
}