aboutsummaryrefslogtreecommitdiffstats
path: root/libskrift_free_context.c
blob: 68ac14d1dcc566442def7be2ed52a7d8cee8acbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
/* See LICENSE file for copyright and license details. */
#include "common.h"

void
libskrift_free_context(LIBSKRIFT_CONTEXT *ctx)
{
	if (ctx) {
		while (ctx->nfonts--)
			libskrift_close_font(ctx->fonts[ctx->nfonts]);
		free(ctx);
	}
}