From 69e7fdc8f7ed2782e2c73b632c2a7ee7e6b641d5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 10 Feb 2025 18:28:54 +0100 Subject: Fix portability issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcoopgamma_filter_destroy.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libcoopgamma_filter_destroy.c') 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; } -- cgit v1.2.3-70-g09d2