Skip to content
Snippets Groups Projects
Commit 76cd807c authored by Marvin Scholz's avatar Marvin Scholz Committed by Jean-Baptiste Kempf
Browse files

darwinvlc: do not call libvlc_release on NULL

When initialising libVLC fails, this can be NULL and calling
libvlc_release would cause a null-pointer dereference.
parent bfaa7b69
No related branches found
No related tags found
1 merge request!6336darwinvlc: do not call libvlc_release on NULL
Pipeline #534988 passed with warnings with stages
in 32 minutes and 42 seconds
......@@ -322,7 +322,8 @@ out:
dispatch_release(sigTermSource);
dispatch_release(sigChldSource);
libvlc_release(vlc);
if (vlc)
libvlc_release(vlc);
#ifdef HAVE_BREAKPAD
if (breakpad)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment