mirror of
https://github.com/thepigeongenerator/tetris_clone
synced 2026-02-08 07:33:34 +01:00
fix: memory leak on exit
This commit is contained in:
@@ -34,7 +34,7 @@ static void window_init(struct gamedata const* gdat) {
|
||||
|
||||
static void window_free(void) {
|
||||
assert(win);
|
||||
// render_free();
|
||||
render_free();
|
||||
SDL_DestroyWindow(win);
|
||||
win = NULL;
|
||||
close = false;
|
||||
|
||||
Reference in New Issue
Block a user