Merge pull request #67 from DolphyWind/memory_leak_fix

Memory gets freed when you quit after you select a card
This commit is contained in:
Murilo Pereira 2023-02-10 13:11:38 +01:00 committed by GitHub
commit 525a00e6e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()) {