summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-10-08 20:41:52 +0200
committerxengineering <me@xengineering.eu>2022-10-08 20:41:52 +0200
commit9db0e03bf34f21f632618ce0f2da4c061e8f76b2 (patch)
tree3bb2232d326e29a730ce52ae318e49af4b15c10d
parent27879d12f5a9f00b7c6b0d8fb9047710d82046bf (diff)
downloadlimox-9db0e03bf34f21f632618ce0f2da4c061e8f76b2.tar
limox-9db0e03bf34f21f632618ce0f2da4c061e8f76b2.tar.zst
limox-9db0e03bf34f21f632618ce0f2da4c061e8f76b2.zip
Avoid memory access errors on cleanup
-rw-r--r--sdl2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sdl2.c b/sdl2.c
index 6b30891..e034446 100644
--- a/sdl2.c
+++ b/sdl2.c
@@ -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();
}