Commit 41265f80 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

playlist/tree.c: Fix an input_item leak.

parent edecc3be
...@@ -65,6 +65,8 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist, ...@@ -65,6 +65,8 @@ playlist_item_t * playlist_NodeCreate( playlist_t *p_playlist,
psz_name, 0, NULL, -1, ITEM_TYPE_NODE ); psz_name, 0, NULL, -1, ITEM_TYPE_NODE );
p_item = playlist_ItemNewFromInput( VLC_OBJECT(p_playlist), p_item = playlist_ItemNewFromInput( VLC_OBJECT(p_playlist),
p_input ? p_input : p_new_input ); p_input ? p_input : p_new_input );
if( !p_input )
vlc_gc_decref( p_new_input );
if( p_item == NULL ) return NULL; if( p_item == NULL ) return NULL;
p_item->i_children = 0; p_item->i_children = 0;
......
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