Skip to content

Commit

Permalink
Memory gets freed when you quit after you select a card
Browse files Browse the repository at this point in the history
  • Loading branch information
DolphyWind committed Feb 10, 2023
1 parent 14cd5e6 commit 22ec7de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ static void handle_card_movement(struct cursor *cursor) {
for (;;) {
if ((key = getch()) == 'q' || key == 'Q') {
endwin();
game_end();
exit(0);
}
if (term_size_ok()) {
Expand Down

0 comments on commit 22ec7de

Please sign in to comment.