Commit faabe592ab7a0e04b2a047d11a45e6eddd154067

Thomas de Grivel 2024-02-28T10:57:38

unload seq at window clean

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libc3/window/window.c b/libc3/window/window.c
index fc8f23d..00ea654 100644
--- a/libc3/window/window.c
+++ b/libc3/window/window.c
@@ -47,6 +47,8 @@ void window_clean (s_window *window)
   uw i;
   assert(window);
   i = 0;
+  if (window->seq && window->seq->unload)
+    window->seq->unload(window->seq);
   while (i < window->sequence_count) {
     sequence_clean(window->sequence + i);
     i++;