Skip to content

Commit

Permalink
removed unused assets, fixed memory leak for panic_free to clean texture
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsunghao-C committed Sep 4, 2024
1 parent b6bb3f4 commit 36f562c
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 1,794 deletions.
434 changes: 0 additions & 434 deletions assets/door_frame/Kat_1.xpm

This file was deleted.

454 changes: 0 additions & 454 deletions assets/door_frame/Kat_2.xpm

This file was deleted.

454 changes: 0 additions & 454 deletions assets/door_frame/Kat_3.xpm

This file was deleted.

445 changes: 0 additions & 445 deletions assets/door_frame/Kat_4.xpm

This file was deleted.

4 changes: 0 additions & 4 deletions assets/door_frame/door_frame.txt

This file was deleted.

6 changes: 3 additions & 3 deletions srcs/parser/get_textures_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/* ::: :::::::: */
/* get_textures_utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jteissie <jteissie@student.42.fr> +#+ +:+ +#+ */
/* By: tsuchen <tsuchen@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/28 17:29:47 by jteissie #+# #+# */
/* Updated: 2024/08/29 14:00:13 by jteissie ### ########.fr */
/* Updated: 2024/09/04 13:46:00 by tsuchen ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -97,7 +97,7 @@ void panic_clean(t_textdata *textures)
size_t i;

i = 0;
while (i < 4)
while (i < 5)
{
if (textures->text_paths[i])
free(textures->text_paths[i]);
Expand Down

0 comments on commit 36f562c

Please sign in to comment.