]> git.sesse.net Git - vlc/commitdiff
macosx: fixed a crash when rebuilding the playlist view on quit
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 19 Feb 2012 21:20:12 +0000 (22:20 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 19 Feb 2012 21:20:12 +0000 (22:20 +0100)
modules/gui/macosx/playlist.m

index 820f40b861977276e8523e7017b1237e669d035b..97570056e6732a8033a421edfb27ba3b1d9a54e8 100644 (file)
                                 forTableColumn:(NSTableColumn *)tableColumn
                                 item:(id)item
 {
-    playlist_t *p_playlist = pl_Get( VLCIntf );
+    /* this method can be called when VLC is already dead, hence the extra checks */
+    intf_thread_t * p_intf = VLCIntf;
+    if (!p_intf)
+        return;
+    playlist_t *p_playlist = pl_Get( p_intf );
+    if (!p_playlist)
+        return;
 
     id o_playing_item;