Closed rnpnr closed 1 year ago
When the cmd closes the window the window pointer gets freed along the way. We can't use win->next to update the loop variable if sam_execute() has been called. Instead we can store win->next early and use that variable to continue the loop.
fixes #1090
+1 from me.
Merged into https://git.sr.ht/~mcepl/vis/tree and after brief testing, it seems to be working.
When the cmd closes the window the window pointer gets freed along the way. We can't use win->next to update the loop variable if sam_execute() has been called. Instead we can store win->next early and use that variable to continue the loop.
fixes #1090