diff options
author | xengineering <me@xengineering.eu> | 2022-10-08 20:41:52 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-10-08 20:41:52 +0200 |
commit | 9db0e03bf34f21f632618ce0f2da4c061e8f76b2 (patch) | |
tree | 3bb2232d326e29a730ce52ae318e49af4b15c10d | |
parent | 27879d12f5a9f00b7c6b0d8fb9047710d82046bf (diff) | |
download | limox-9db0e03bf34f21f632618ce0f2da4c061e8f76b2.tar limox-9db0e03bf34f21f632618ce0f2da4c061e8f76b2.tar.zst limox-9db0e03bf34f21f632618ce0f2da4c061e8f76b2.zip |
Avoid memory access errors on cleanup
-rw-r--r-- | sdl2.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -58,8 +58,11 @@ void gui_run(void) { } free(pixels); - SDL_DestroyTexture(texture); - SDL_DestroyRenderer(renderer); + + // TODO this seems to end in memory access errors but ... why? + //SDL_DestroyTexture(texture); + //SDL_DestroyRenderer(renderer); + SDL_Quit(); } |