Commit bb30cfed authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix output stream leak in case of Avahi error

parent fcce68af
......@@ -304,6 +304,7 @@ static int Open( vlc_object_t *p_this )
if( p_playlist == NULL )
{
msg_Err( p_access, "unable to find playlist" );
httpd_StreamDelete( p_sys->p_httpd_stream );
httpd_HostDelete( p_sys->p_httpd_host );
free( (void *)p_sys );
return VLC_EGENERIC;
......@@ -324,6 +325,7 @@ static int Open( vlc_object_t *p_this )
if( p_sys->p_bonjour == NULL )
{
vlc_object_release( p_playlist );
httpd_StreamDelete( p_sys->p_httpd_stream );
httpd_HostDelete( p_sys->p_httpd_host );
free( (void *)p_sys );
return VLC_EGENERIC;
......
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