Commit 800b605e authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

playlist: Correctly decref where we use the object.

parent 09ce2046
......@@ -398,8 +398,6 @@ check_input:
static void ML_Decref( playlist_item_t *p_node )
{
vlc_gc_decref( p_node->p_input );
int i;
if( p_node->i_children > 0 )
for( i = 0 ; i < p_node->i_children ; i++ )
......
......@@ -180,6 +180,7 @@ int playlist_MLLoad( playlist_t *p_playlist )
vlc_event_detach( &p_input->event_manager, vlc_InputItemSubItemAdded,
input_item_subitem_added, p_playlist );
vlc_gc_decref( p_input );
free( psz_uri );
return VLC_SUCCESS;
......
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