Commit 243c1fb6 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx/playlist: add another sanity check

(cherry picked from commit e32da3cbef3f10e311f00d0a68e2037939a292dc)
parent 5175451c
...@@ -940,6 +940,10 @@ ...@@ -940,6 +940,10 @@
PL_LOCK; PL_LOCK;
playlist_item_t *p_item = [o_item pointerValue]; playlist_item_t *p_item = [o_item pointerValue];
if (!p_item || !p_item->p_input) {
PL_UNLOCK;
continue;
}
#ifndef NDEBUG #ifndef NDEBUG
msg_Dbg( p_intf, "deleting item %i (of %i) with id \"%i\", pointerValue \"%p\" and %i children", i+1, i_count, msg_Dbg( p_intf, "deleting item %i (of %i) with id \"%i\", pointerValue \"%p\" and %i children", i+1, i_count,
p_item->p_input->i_id, [o_item pointerValue], p_item->i_children +1 ); p_item->p_input->i_id, [o_item pointerValue], p_item->i_children +1 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment