[vlc-commits] [Git][videolan/vlc][master] darwinvlc: do not call libvlc_release on NULL
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sat Nov 16 16:27:56 UTC 2024
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
76cd807c by Marvin Scholz at 2024-11-16T15:32:44+00:00
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.
- - - - -
1 changed file:
- bin/darwinvlc.m
Changes:
=====================================
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)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/76cd807c24c618c8d075fe3133414e8dfe505b3a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/76cd807c24c618c8d075fe3133414e8dfe505b3a
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list