Commit aa5d3f29669b9c316e7678dc0b650cf0150d9c33

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++;