From 900a0a7506b144cdbf13463d2122dac4eceee3c3 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 1 Oct 2024 18:21:27 +0300 Subject: [PATCH] twn_loop.c: delete gl context on cleanup, some implementations triggered leak detector otherwise --- src/twn_loop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/twn_loop.c b/src/twn_loop.c index 18a4dfc..520a6f5 100644 --- a/src/twn_loop.c +++ b/src/twn_loop.c @@ -544,6 +544,8 @@ static void clean_up(void) { toml_free(ctx.config_table); PHYSFS_deinit(); + + SDL_GL_DeleteContext(ctx.gl_context); SDL_Quit(); }