[vlc-commits] macosx: fix null deref
Thomas Guillem
git at videolan.org
Fri Jan 20 11:22:11 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 20 11:21:48 2017 +0100| [728ed2ff7a6ddebbe07c2cbc9c1841a056107fbc] | committer: Thomas Guillem
macosx: fix null deref
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=728ed2ff7a6ddebbe07c2cbc9c1841a056107fbc
---
modules/gui/macosx/VLCMainWindow.m | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/VLCMainWindow.m b/modules/gui/macosx/VLCMainWindow.m
index aad40fb..fe62713 100644
--- a/modules/gui/macosx/VLCMainWindow.m
+++ b/modules/gui/macosx/VLCMainWindow.m
@@ -1163,7 +1163,8 @@ static const float f_min_window_height = 307.;
} else {
PL_LOCK;
playlist_item_t *pl_item = playlist_ChildSearchName(p_playlist->p_root, [[item untranslatedTitle] UTF8String]);
- [[[[VLCMain sharedInstance] playlist] model] changeRootItem:pl_item];
+ if (pl_item != NULL)
+ [[[[VLCMain sharedInstance] playlist] model] changeRootItem:pl_item];
PL_UNLOCK;
}
More information about the vlc-commits
mailing list