Commit b9da1de8 authored by Rafaël Carré's avatar Rafaël Carré

Release children items array

parent 7f407be6
......@@ -196,6 +196,13 @@ int playlist_ItemDelete( playlist_item_t *p_item )
free( p_parent );
}
for( ; p_item->i_children > 0 ; )
{
playlist_item_t *p_child = p_item->pp_children[0];
REMOVE_ELEM( p_item->pp_children, p_item->i_children, 0 );
playlist_ItemDelete( p_child );
}
vlc_input_item_Clean( &p_item->input );
free( p_item );
......
......@@ -2,7 +2,7 @@
* view.c : Playlist views functions
*****************************************************************************
* Copyright (C) 1999-2004 the VideoLAN team
* $Id$
* $Id: e6eb7c756d8f027f9ae5dc601ed90b7b47800014 $
*
* Authors: Clément Stenac <zorglub@videolan.org>
*
......@@ -175,6 +175,7 @@ int playlist_ViewUpdate( playlist_t *p_playlist, int i_view)
if( i_view == VIEW_ALL )
{
p_view->p_root->i_children = p_playlist->i_size;
free( p_view->p_root->pp_children );
p_view->p_root->pp_children = p_playlist->pp_items;
}
......
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