From 351d600ebab522ebe40fe19c976f1c1ee52de50e Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Sat, 9 Nov 2024 15:14:22 +0800 Subject: [PATCH] NULL pointer after free --- texture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/texture.c b/texture.c index eaca8d4..6068bf2 100644 --- a/texture.c +++ b/texture.c @@ -100,5 +100,6 @@ int text_texture_frame_destroy(text_texture_frame* text_texture_frame) text_texture_destroy(&text_texture_frame->textures[i]); } free(text_texture_frame->textures); + text_texture_frame->textures = NULL; return 1; }