le jeu des motos dans tron - retour accueil
git clone git://bebou.netlib.re/tron
Log | Files | Refs | README |
commit 18afc2f49e80c3bb9cf076a2a9c233a281fd09de parent 03b7f8ae1f2586fdafee5c16a037cca31253d48a Auteurice: Arthur Pons <arthur.pons@unistra.fr> Date: Thu, 26 Jun 2025 14:46:53 +0200 On libère la liste des voitures Diffstat:
M | tron.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/tron.c b/tron.c @@ -201,6 +201,7 @@ int main(int argc, char **argv) { switch(ev.key) { case 13: /*Enter*/ for (int i=0;i<cars.count;i++) free(cars.list[i].path); + free (cars.list); tb_shutdown(); return 0; case 65517: /*up*/