mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-19 19:42:24 +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:
parent
42b40d03f1
commit
b440821d18
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user