mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 05:55:46 +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