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

playlist: Fix an input_item leak in item.c, and notice that we are leaking one in loadsave.c.

parent 41265f80
......@@ -295,6 +295,7 @@ int playlist_AddExt( playlist_t *p_playlist, const char * psz_uri,
i_ret = playlist_AddInput( p_playlist, p_input, i_mode, i_pos, b_playlist,
b_locked );
vlc_gc_decref( p_input );
if( i_ret == VLC_SUCCESS )
return p_input->i_id;
return -1;
......
......@@ -151,7 +151,7 @@ int playlist_MLLoad( playlist_t *p_playlist )
goto error;
p_playlist->p_ml_onelevel->p_input =
p_playlist->p_ml_category->p_input = p_input;
p_playlist->p_ml_category->p_input = p_input; /* We leak that apparently */
vlc_event_attach( &p_input->event_manager, vlc_InputItemSubItemAdded,
input_item_subitem_added, p_playlist );
......
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