From 9db0e03bf34f21f632618ce0f2da4c061e8f76b2 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 8 Oct 2022 20:41:52 +0200 Subject: Avoid memory access errors on cleanup --- sdl2.c | 7 +++++-- 1 file 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(); } -- cgit v1.2.3-70-g09d2