aboutsummaryrefslogblamecommitdiffstats
path: root/libgamma_site_destroy.c
blob: c3e060a1420fb0a8d23825a8152fef568b5ef3b0 (plain) (tree)























                                                           
/* See LICENSE file for copyright and license details. */
#include "common.h"


/**
 * Release all resources held by a site state
 * 
 * @param  this  The site state
 */
void
libgamma_site_destroy(libgamma_site_state_t *restrict this)
{
	switch (this->method) {
#define X(CONST, CNAME, DEPTH, RAMPS)\
	case CONST:\
		libgamma_##CNAME##_site_destroy(this);\
		break;
	LIST_AVAILABLE_METHODS(X)
#undef X
	default:
		break;
	}
	free(this->site);
}