Commit 364136ddd442643327f7299f6437e520a4d2b1db

Thomas de Grivel 2024-02-27T09:45:02

fix double free

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libc3/window/sdl2/demo/matrix.c b/libc3/window/sdl2/demo/matrix.c
index 2cf1bd0..85c88ad 100644
--- a/libc3/window/sdl2/demo/matrix.c
+++ b/libc3/window/sdl2/demo/matrix.c
@@ -155,7 +155,7 @@ void matrix_screen_clean (s_tag *tag)
   list = tag->data.list;
   while (list) {
     matrix_column_clean(&list->tag);
-    list = list_delete(list);
+    list = list_next(list);
   }
 }