Commit db3f5756 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

qt4: Forgotten lock. Reported by ahoka.

Anyway this is broken, qt4 shouldn't assume that the playlist_item_t can't be deleted. We need to implement refcounting here, or a sound garbage collection. Refcounting would be safer.
parent 4630078e
...@@ -79,8 +79,10 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, ...@@ -79,8 +79,10 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i,
leftW->addWidget( artContainer ); leftW->addWidget( artContainer );
/* Initialisation of the playlist */ /* Initialisation of the playlist */
PL_LOCK;
playlist_item_t *p_root = playlist_item_t *p_root =
playlist_GetPreferredNode( THEPL, THEPL->p_local_category ); playlist_GetPreferredNode( THEPL, THEPL->p_local_category );
PL_UNLOCK;
rightPanel = new StandardPLPanel( this, p_intf, THEPL, p_root ); rightPanel = new StandardPLPanel( this, p_intf, THEPL, p_root );
......
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