fix memory leak

This commit is contained in:
2024-12-16 21:50:56 +01:00
parent 9f51622e59
commit cccb3bdf6b
2 changed files with 2 additions and 0 deletions

View File

@@ -275,6 +275,7 @@ void inGameLoop (unsigned short int **tab2d, int N, vect *playerPos,
char *char_time = timeToText (time(NULL) - time_start);
displayTextSDL (display_user, char_time, coor_time,
size_menu, 50);
free(char_time);
}
SDL_Delay (16);