aboutsummaryrefslogtreecommitdiffstats
path: root/libfonts_deallocate_encoding_mapping.c
blob: e54fa5e524e8600ed03eed557d404515ddd15c4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST


void
libfonts_deallocate_encoding_mapping(struct libfonts_encoding_mapping *this)
{
	if (this) {
		if (this->entries) {
			while (this->nentries)
				libfonts_deallocate_encoding_mapping_entry(&this->entries[--this->nentries]);
			free(this->entries);
			this->entries = NULL;
		}
		free(this->target);
		this->target = NULL;
	}
}


#else


int
main(void)
{
	return 0; /* XXX add test */
}


#endif