regarder les autres leaks si jamais et faire des test pousee
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: yantoine <yantoine@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/14 01:41:17 by yantoine #+# #+# */
|
||||
/* Updated: 2025/02/25 19:05:30 by yantoine ### ########.fr */
|
||||
/* Updated: 2025/02/25 19:36:04 by yantoine ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -86,7 +86,7 @@ t_scene load_config(const char *filename)
|
||||
if (!line)
|
||||
break ;
|
||||
scene = parsing_line(line, scene);
|
||||
free(line);
|
||||
}
|
||||
ft_free_array(scene.all_file);
|
||||
return (scene);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: yantoine <yantoine@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/13 20:02:36 by yantoine #+# #+# */
|
||||
/* Updated: 2025/02/25 18:35:45 by yantoine ### ########.fr */
|
||||
/* Updated: 2025/02/25 19:21:06 by yantoine ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -124,6 +124,7 @@ typedef struct s_scene
|
||||
t_ambient ambient;
|
||||
t_camera camera;
|
||||
t_ray ray;
|
||||
int problem;
|
||||
int num_spheres;
|
||||
int num_planes;
|
||||
int num_cylinders;
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@
|
||||
/* By: yantoine <yantoine@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/14 20:05:49 by yantoine #+# #+# */
|
||||
/* Updated: 2025/02/17 21:25:34 by yantoine ### ########.fr */
|
||||
/* Updated: 2025/02/25 19:38:13 by yantoine ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -37,7 +37,7 @@ t_vec3 parse_color(const char *token, t_scene scene)
|
||||
ft_free_array(token_color);
|
||||
ft_free_array(scene.token_if_exit);
|
||||
ft_putendl_fd("error", 2);
|
||||
free(scene.line_if_exit);
|
||||
ft_free_array(scene.all_file);
|
||||
close(scene.fd_if_exit);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
/* By: yantoine <yantoine@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/15 19:39:08 by yantoine #+# #+# */
|
||||
/* Updated: 2025/02/25 02:46:28 by yantoine ### ########.fr */
|
||||
/* Updated: 2025/02/25 19:21:36 by yantoine ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@
|
||||
/* By: yantoine <yantoine@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/14 20:23:21 by yantoine #+# #+# */
|
||||
/* Updated: 2025/02/25 17:42:45 by yantoine ### ########.fr */
|
||||
/* Updated: 2025/02/25 19:37:18 by yantoine ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -23,7 +23,7 @@ char **get_tokens_secure(t_scene scene, const int numObject,
|
||||
{
|
||||
ft_free_array(tokens);
|
||||
ft_putendl_fd("error", 2);
|
||||
free(scene.line_if_exit);
|
||||
ft_free_array(scene.all_file);
|
||||
close(scene.fd_if_exit);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@
|
||||
/* By: yantoine <yantoine@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/15 19:16:01 by yantoine #+# #+# */
|
||||
/* Updated: 2025/02/17 21:35:12 by yantoine ### ########.fr */
|
||||
/* Updated: 2025/02/25 19:37:48 by yantoine ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -38,7 +38,7 @@ t_vec3 parse_vector(const char *token, t_scene scene)
|
||||
ft_free_array(token_vector);
|
||||
ft_free_array(scene.token_if_exit);
|
||||
ft_putendl_fd("error", 2);
|
||||
free(scene.line_if_exit);
|
||||
ft_free_array(scene.all_file);
|
||||
close(scene.fd_if_exit);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -617,6 +617,7 @@ print_sphere print_next.c /^void print_sphere(t_sphere sphere)$/;" f typeref:typ
|
||||
print_vec3 print_next.c /^void print_vec3(t_vec3 vec)$/;" f typeref:typename:void
|
||||
printf_fd libft/printf_fd.c /^int printf_fd(int fd, const char *str, ...)$/;" f typeref:typename:int
|
||||
private_cmap minilibx-linux/mlx_int.h /^ int private_cmap;$/;" m struct:s_xvar typeref:typename:int
|
||||
problem miniRT.h /^ int problem;$/;" m struct:s_scene typeref:typename:int
|
||||
proj miniRT.h /^ float proj;$/;" m struct:s_calc typeref:typename:float
|
||||
pshm_format minilibx-linux/mlx_int.h /^ int pshm_format;$/;" m struct:s_xvar typeref:typename:int
|
||||
putnbr_b libft/printf_fd.c /^static int putnbr_b(t_lu n, char *str, int numdig, t_info *info)$/;" f typeref:typename:int file:
|
||||
|
||||
Reference in New Issue
Block a user