Browse Source

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.
pull/175/head
Marvin Scholz 2 years ago
committed by Jean-Baptiste Kempf
parent
commit
76cd807c24
  1. 3
      bin/darwinvlc.m

3
bin/darwinvlc.m

@ -322,7 +322,8 @@ out:
dispatch_release(sigTermSource);
dispatch_release(sigChldSource);
libvlc_release(vlc);
if (vlc)
libvlc_release(vlc);
#ifdef HAVE_BREAKPAD
if (breakpad)

Loading…
Cancel
Save