osdep/terminal-win: reset tmp_buffers_key when uninit

To prevent potential undefined results when using a freed value.
This commit is contained in:
nanahi 2024-09-15 02:52:48 -04:00 committed by Kacper Michajłow
parent 42b40d03f1
commit b440821d18
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ void terminal_uninit(void)
running = false; running = false;
} }
FlsFree(tmp_buffers_key); FlsFree(tmp_buffers_key);
tmp_buffers_key = FLS_OUT_OF_INDEXES;
} }
bool terminal_in_background(void) bool terminal_in_background(void)