aboutsummaryrefslogblamecommitdiffstats
path: root/libfonts_deallocate_encoding_mapping.c
blob: e54fa5e524e8600ed03eed557d404515ddd15c4b (plain) (tree)































                                                                                                             
/* 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