solved leaks still reachable because gnl wasn't going to the end, and close fd

This commit is contained in:
Hugo LAMY
2022-05-04 22:00:36 +02:00
parent d4e5f298fa
commit c89c107e09
9 changed files with 47 additions and 48 deletions

View File

@@ -6,7 +6,7 @@
/* By: pblagoje <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/05/04 13:57:22 by pblagoje #+# #+# */
/* Updated: 2022/05/04 13:57:28 by pblagoje ### ########.fr */
/* Updated: 2022/05/04 21:57:53 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -50,5 +50,6 @@ t_game *init_struct(void)
init_map(&(game->map));
init_txt_null(&(game->txt));
init_null_mlx_ptr(game);
game->fd = -1;
return (game);
}