Commit 2c31c3a3 authored by Antoine Cellerier's avatar Antoine Cellerier

check if pointers are NULL (Closes #86 -> we can release test1)

event reporting in wxwin32 seems to be different than in wxgtk
parent 312e655a
...@@ -1083,6 +1083,8 @@ void Playlist::OnActivateItem( wxTreeEvent& event ) ...@@ -1083,6 +1083,8 @@ void Playlist::OnActivateItem( wxTreeEvent& event )
LockPlaylist( p_intf->p_sys, p_playlist ); LockPlaylist( p_intf->p_sys, p_playlist );
if( !( p_wxitem && p_wxparent ) ) return;
p_item2 = playlist_ItemGetById(p_playlist, p_wxitem->i_id); p_item2 = playlist_ItemGetById(p_playlist, p_wxitem->i_id);
p_node2 = playlist_ItemGetById(p_playlist, p_wxparent->i_id); p_node2 = playlist_ItemGetById(p_playlist, p_wxparent->i_id);
if( p_item2 && p_item2->i_children == -1 ) if( p_item2 && p_item2->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