aboutsummaryrefslogtreecommitdiffstats
path: root/libcoopgamma_filter_destroy.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-02-10 18:28:54 +0100
committerMattias Andrée <m@maandree.se>2025-02-10 18:28:54 +0100
commit69e7fdc8f7ed2782e2c73b632c2a7ee7e6b641d5 (patch)
tree55b05baf81f3b78e80df594f1c082735a03dc654 /libcoopgamma_filter_destroy.c
parentMinor code improvements and split into multiple c files (diff)
downloadlibcoopgamma-1.2.4.tar.gz
libcoopgamma-1.2.4.tar.bz2
libcoopgamma-1.2.4.tar.xz
Fix portability issuesHEAD1.2.4master
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libcoopgamma_filter_destroy.c')
-rw-r--r--libcoopgamma_filter_destroy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcoopgamma_filter_destroy.c b/libcoopgamma_filter_destroy.c
index 89765ad..84ee4a3 100644
--- a/libcoopgamma_filter_destroy.c
+++ b/libcoopgamma_filter_destroy.c
@@ -18,4 +18,9 @@ libcoopgamma_filter_destroy(libcoopgamma_filter_t *restrict this)
free(this->class);
free(this->ramps.u8.red);
memset(this, 0, sizeof(*this));
+ this->crtc = NULL;
+ this->class = NULL;
+ this->ramps.u8.red = NULL;
+ this->ramps.u8.green = NULL;
+ this->ramps.u8.blue = NULL;
}