diff options
Diffstat (limited to '')
-rw-r--r-- | libparsepcf_destroy_preparsed_font.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libparsepcf_destroy_preparsed_font.c b/libparsepcf_destroy_preparsed_font.c new file mode 100644 index 0000000..36ec493 --- /dev/null +++ b/libparsepcf_destroy_preparsed_font.c @@ -0,0 +1,10 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + + +void +libparsepcf_destroy_preparsed_font(struct libparsepcf_font *font) +{ + free(font->_tables); + memset(font, 0, sizeof(*font)); +} |