fixed a double free

master
NetherEran 2020-09-10 16:01:29 +02:00
parent 50df5e1896
commit 6c29862ff8
1 changed files with 1 additions and 3 deletions

4
game.c
View File

@ -63,7 +63,7 @@ void play_game(GAME_STATE* state) {
while(1) {
if (state -> status) {
destroy_field(f);
break;
return;
}
@ -84,8 +84,6 @@ void play_game(GAME_STATE* state) {
timeout.tv_sec = 0;
timeout.tv_usec = 50000;
}
}
free(f);
}