cocoa_common: avoid situational nil dereferencing
This commit is contained in:
1 parent
e3fe5b8735
commit
cc6ca112e0
1 file changed
+3
-2
@@ -592,9 +592,10 @@ void create_menu()
|
||||
|
||||
- (void)windowDidResize:(NSNotification *) notification
|
||||
{
|
||||
struct vo_cocoa_state *s = _vo->cocoa;
|
||||
if (_vo)
|
||||
if (_vo) {
|
||||
struct vo_cocoa_state *s = _vo->cocoa;
|
||||
s->did_resize = YES;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)fullscreen
|
||||
|
||||
Reference in new issue
Block a user