mirror of https://github.com/mpv-player/mpv
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;
|
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)
|
||||||
|
|
Loading…
Reference in New Issue