NULL pointer after free

This commit is contained in:
Sheldon Lee 2024-11-09 15:14:22 +08:00
parent 19cb656254
commit 351d600eba

View File

@ -100,5 +100,6 @@ int text_texture_frame_destroy(text_texture_frame* text_texture_frame)
text_texture_destroy(&text_texture_frame->textures[i]); text_texture_destroy(&text_texture_frame->textures[i]);
} }
free(text_texture_frame->textures); free(text_texture_frame->textures);
text_texture_frame->textures = NULL;
return 1; return 1;
} }