From bce476be38d75cca8a7a75a6827d89f4c58a06c8 Mon Sep 17 00:00:00 2001 From: Chukobyte Date: Sat, 10 Feb 2024 23:06:42 -0500 Subject: [PATCH] Fixing bug with delete textures. --- seika/rendering/texture.c | 4 +++- vcpkg.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/seika/rendering/texture.c b/seika/rendering/texture.c index 4568298..72d2e7f 100644 --- a/seika/rendering/texture.c +++ b/seika/rendering/texture.c @@ -130,7 +130,9 @@ bool se_texture_is_texture_valid(SETexture* texture) { } void se_texture_delete(SETexture* texture) { - SE_MEM_FREE(texture->fileName); + if (texture->fileName) { + SE_MEM_FREE(texture->fileName); + } SE_MEM_FREE(texture); } diff --git a/vcpkg.json b/vcpkg.json index 34270b0..afe886f 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,6 +1,6 @@ { "name": "seika", - "version": "0.0.33", + "version": "0.0.34", "dependencies": [ { "name": "sdl2",