From 575e3ad31dd8ccf2afdd5c8a8d2dbf8d57241c5d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 28 Jan 2023 09:19:05 +0100 Subject: Fix warnings, add restrict, and add function attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libglitter_create_render_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libglitter_create_render_context.c') diff --git a/libglitter_create_render_context.c b/libglitter_create_render_context.c index 9dd7871..63ece5a 100644 --- a/libglitter_create_render_context.c +++ b/libglitter_create_render_context.c @@ -43,7 +43,8 @@ libglitter_create_render_context(size_t noutputs, size_t rowsize, size_t widthmu return this; fail: - libglitter_free_render_context(this); + free(this->cellweights_double); + free(this); return NULL; } -- cgit v1.2.3-70-g09d2