aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_x_randr_partition_destroy.c
blob: a48a02dbc2a003c32f412334e196f3e0d9fb8a9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* See LICENSE file for copyright and license details. */
#define IN_LIBGAMMA_X_RANDR
#include "common.h"


/**
 * Release all resources held by a partition state
 * 
 * @param  this  The partition state
 */
void
libgamma_x_randr_partition_destroy(libgamma_partition_state_t *restrict this)
{
	libgamma_x_randr_partition_data_t *restrict data = this->data;
	free(data->crtcs);
	free(data->outputs);
	free(data->crtc_to_output);
	free(data);
}