aboutsummaryrefslogtreecommitdiffstats
path: root/libskrift_free_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'libskrift_free_context.c')
-rw-r--r--libskrift_free_context.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libskrift_free_context.c b/libskrift_free_context.c
new file mode 100644
index 0000000..2375c05
--- /dev/null
+++ b/libskrift_free_context.c
@@ -0,0 +1,11 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+
+void
+libskrift_free_context(LIBSKRIFT_CONTEXT *ctx)
+{
+ if (ctx) {
+ libskrift_close_font(ctx->font);
+ free(ctx);
+ }
+}