[vlc-commits] macosx: fix segfault on quit

Felix Paul Kühne git at videolan.org
Fri Feb 1 16:41:57 CET 2019


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Fri Feb  1 15:56:31 2019 +0100| [8a45afbf5555853404a3fff7cfec78e5524e78fb] | committer: Felix Paul Kühne

macosx: fix segfault on quit

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8a45afbf5555853404a3fff7cfec78e5524e78fb
---

 modules/gui/macosx/VLCPlaylistController.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCPlaylistController.m b/modules/gui/macosx/VLCPlaylistController.m
index 6f13637b19..ccbb214d6e 100644
--- a/modules/gui/macosx/VLCPlaylistController.m
+++ b/modules/gui/macosx/VLCPlaylistController.m
@@ -206,9 +206,10 @@ static const struct vlc_playlist_callbacks playlist_callbacks = {
 {
     if (_p_playlist) {
         if (_playlistListenerID) {
+            vlc_playlist_Lock(_p_playlist);
             vlc_playlist_RemoveListener(_p_playlist, _playlistListenerID);
+            vlc_playlist_Unlock(_p_playlist);
         }
-        vlc_playlist_Delete(_p_playlist);
     }
 }
 



More information about the vlc-commits mailing list