aboutsummaryrefslogtreecommitdiffstats
path: root/libglitter_free_render_context.c
blob: 05f27ebe3b8d2bdbf09d9444058be8de6dac46ff (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
/* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST


void
libglitter_free_render_context(LIBGLITTER_RENDER_CONTEXT *this)
{
	if (this) {
		free(this->cellweights_double);
		free(this->cellweights_float);
		free(this);
	}
}


#else


int
main(void)
{
	libglitter_free_render_context(NULL);
	return 0;
}


#endif