0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 11:32:22 +02:00

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

View File

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