Commit 09715dbf authored by Pierre d'Herbemont's avatar Pierre d'Herbemont
Browse files

playlist/item.c: Properly release the input_item as pointed by funman.

parent dcebfbb0
......@@ -295,10 +295,11 @@ 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 );
int i_id = i_ret == VLC_SUCCESS ? p_input->i_id : -1
vlc_gc_decref( p_input );
if( i_ret == VLC_SUCCESS )
return p_input->i_id;
return -1;
return i_id;
}
/** Add an input item to the playlist node */
......
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