aboutsummaryrefslogblamecommitdiffstats
path: root/libgamma_x_randr_partition_destroy.c
blob: 996149b2e797df4e86e6bd2936004dc33f886f11 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                         
                                                                                  
 
                                                                           




                                   
/* 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(struct libgamma_partition_state *restrict this)
{
	struct libgamma_x_randr_partition_data *restrict data = this->data;
	free(data->crtcs);
	free(data->outputs);
	free(data->crtc_to_output);
	free(data);
}