game_delete + edit README

This commit is contained in:
Thibault Perrier committed 2021-11-28 23:21:17 +01:00
1 parent 097e4da7c6
commit 640ad33df6
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -62,6 +62,12 @@ bool game_equal(cgame g1, cgame g2) {
}
void game_delete(game g) {
for (int i = 0; i < DEFAULT_SIZE; i++) {
free(g->tab_cell[i]);
g->tab_cell[i] = NULL;
}
free(g);
g = NULL;
return;
}