Commit c682ebc0 authored by Thomas Guillem's avatar Thomas Guillem

chromecast: fix leak when the stream is not supported

parent fdd089dd
......@@ -243,6 +243,8 @@ bool sout_stream_sys_t::startSoutChain( sout_stream_t *p_stream )
if ( p_sys_id->p_sub_id == NULL )
{
msg_Err( p_stream, "can't handle %4.4s stream", (char *)&p_sys_id->fmt.i_codec );
es_format_Clean( &p_sys_id->fmt );
free( p_sys_id );
it = streams.erase( it );
}
else
......
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