projects
/
42
/
miniRT.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f499243
)
Free scene memory at the end
author
Lukas Jiriste
<ljiriste@student.42prague.com>
Fri, 6 Dec 2024 08:32:05 +0000
(09:32 +0100)
committer
Lukas Jiriste
<ljiriste@student.42prague.com>
Fri, 6 Dec 2024 08:32:05 +0000
(09:32 +0100)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index 68e389107f48a87b23099e9d0cd7a7982007f486..d6ffc22c340074ca83495dc2e8743dc01d77e3a8 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-187,6
+187,9
@@
void cleanup(t_session *s)
{
mlx_destroy_image(s->mlx, s->img.img);
free_session(s);
+ ft_vec_free(&s->scene.objects, NULL);
+ ft_vec_free(&s->scene.cameras, NULL);
+ ft_vec_free(&s->scene.lights, NULL);
return ;
}