Skip to content

Commit

Permalink
Fixing bug with delete textures.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chukobyte committed Feb 11, 2024
1 parent 6e641bb commit bce476b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion seika/rendering/texture.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "seika",
"version": "0.0.33",
"version": "0.0.34",
"dependencies": [
{
"name": "sdl2",
Expand Down

0 comments on commit bce476b

Please sign in to comment.