mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +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) {
|
static void window_free(void) {
|
||||||
assert(win);
|
assert(win);
|
||||||
// render_free();
|
render_free();
|
||||||
SDL_DestroyWindow(win);
|
SDL_DestroyWindow(win);
|
||||||
win = NULL;
|
win = NULL;
|
||||||
close = false;
|
close = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user