From 141fb4d33f73cac99b1b19e475f83fb755f208a2 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 12 Mar 2020 18:56:59 +0100 Subject: good --- src/ft_free_words.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/ft_free_words.c') diff --git a/src/ft_free_words.c b/src/ft_free_words.c index 598a7ac..648706c 100644 --- a/src/ft_free_words.c +++ b/src/ft_free_words.c @@ -12,13 +12,28 @@ #include +uint8_t + ft_free_sprites(char **sprites) +{ + uint8_t i; + + i = 0; + while (i < 9) + { + ft_memdel((void**)&sprites[i]); + i++; + } + ft_memdel((void**)&sprites); + return (0); +} + uint8_t ft_free_words(char **words) { size_t i; i = 0; - while (words[i]) + while (words[i] && words[i][0]) { ft_memdel((void**)&words[i]); i++; -- cgit v1.2.3