mirror of
https://github.com/mpv-player/mpv
synced 2025-04-17 04:40:09 +00:00
osx: add NULL check for input context in a missing case
Fixes a crash on exit under certain circumstances.
This commit is contained in:
parent
ebc5237c36
commit
ed805e16fc
@ -247,6 +247,7 @@ void cocoa_set_input_context(struct input_ctx *input_context)
|
|||||||
- (void)wakeup
|
- (void)wakeup
|
||||||
{
|
{
|
||||||
[_input_lock lock];
|
[_input_lock lock];
|
||||||
|
if (_inputContext)
|
||||||
mp_input_wakeup(_inputContext);
|
mp_input_wakeup(_inputContext);
|
||||||
[_input_lock unlock];
|
[_input_lock unlock];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user