aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_dummy_crtc_destroy.c
blob: 935c12bbb864b9690adae0976806c6f4000376ab (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
/* See LICENSE file for copyright and license details. */
#define IN_LIBGAMMA_DUMMY
#include "common.h"


/**
 * Release all resources held by a CRTC state
 * 
 * @param  this  The CRTC state
 */
void
libgamma_dummy_crtc_destroy(struct libgamma_crtc_state *restrict this)
{
	struct libgamma_dummy_crtc *data = this->data;
	if (data) {
		free(data->gamma_red);
		data->gamma_red = NULL;
		free(data->gamma_green);
		data->gamma_green = NULL;
		free(data->gamma_blue);
		data->gamma_blue = NULL;
	}
}