commit | 4bccd44af8e0c86de4d53fc0f192b48e76d6c5e8 | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Tue Aug 11 13:55:10 2020 -0700 |
committer | swissChili <swisschili@fastmail.com> | Tue Aug 11 13:55:10 2020 -0700 |
tree | e74deb3b025bf6192647be270b5450311feeca08 | |
parent | d3764d4dedaf650f8f2c26c124c9e2e08e03e78c [diff] [blame] |
Fixed a memory leak where the screen would not be freed when used with the debugger
diff --git a/gui.c b/gui.c index f12ba77..ed34655 100644 --- a/gui.c +++ b/gui.c
@@ -100,7 +100,8 @@ nk_input_begin(ctx); while (SDL_PollEvent(&evt)) { - if (evt.type == SDL_QUIT) goto cleanup; + if (evt.type == SDL_QUIT) + goto cleanup; nk_sdl_handle_event(&evt); } nk_input_end(ctx); @@ -235,6 +236,8 @@ SDL_Quit(); cmd(mq, "quit"); + + printf("Cleaned up GUI\n"); }