Files
xserver/dix/property_list.c
Enrico Weigelt, metux IT consult 7fe49c8a38 dix: add dixPropertyFree()
This function should be used for free'ing an individual Property
structure, along with associated data.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-02-09 20:01:05 +01:00

18 lines
378 B
C

/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
*/
#include <dix-config.h>
#include "dix/property_priv.h"
#include "include/privates.h"
#include "include/propertyst.h"
void dixPropertyFree(PropertyPtr pr)
{
if (pr) {
free(pr->data);
dixFreeObjectWithPrivates(pr, PRIVATE_PROPERTY);
}
}