Removes a memory leak
This commit is contained in:
parent
d2fe3fce4c
commit
f5a1c2f48a
2
.vimrc
2
.vimrc
|
@ -1,6 +1,6 @@
|
||||||
nnoremap <F1> :Make<cr>
|
nnoremap <F1> :Make<cr>
|
||||||
nnoremap <F2> :Make lint test<cr>
|
nnoremap <F2> :Make lint test<cr>
|
||||||
nnoremap <F3> :Termdebug _build/debug/breakhack<cr>
|
nnoremap <F3> :Termdebug LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./ _build/debug/breakhack<cr>
|
||||||
nnoremap <F4> :ter ++close env LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./ ./_build/debug/breakhack<cr>
|
nnoremap <F4> :ter ++close env LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./ ./_build/debug/breakhack<cr>
|
||||||
|
|
||||||
packadd termdebug
|
packadd termdebug
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -12,7 +12,7 @@ test:
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
|
|
||||||
run: $(all)
|
run: $(all)
|
||||||
@./_build/debug/breakhack
|
@LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./ ./_build/debug/breakhack
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
|
|
@ -625,7 +625,11 @@ handle_main_input(void)
|
||||||
switch (gGameState) {
|
switch (gGameState) {
|
||||||
case CREDITS:
|
case CREDITS:
|
||||||
case SCORE_SCREEN:
|
case SCORE_SCREEN:
|
||||||
|
gGameState = MENU;
|
||||||
|
break;
|
||||||
case CHARACTER_MENU:
|
case CHARACTER_MENU:
|
||||||
|
menu_destroy(charSelectMenu);
|
||||||
|
charSelectMenu = NULL;
|
||||||
gGameState = MENU;
|
gGameState = MENU;
|
||||||
break;
|
break;
|
||||||
case MENU:
|
case MENU:
|
||||||
|
|
Loading…
Reference in New Issue