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

chromecast: descriptor leak

parent 1e29fbdd
......@@ -378,7 +378,10 @@ static int connectChromecast(sout_stream_t *p_stream, char *psz_ipChromecast)
p_sys->p_creds = vlc_tls_ClientCreate(VLC_OBJECT(p_stream));
if (p_sys->p_creds == NULL)
{
net_Close(fd);
return -1;
}
p_sys->p_tls = vlc_tls_ClientSessionCreate(p_sys->p_creds, fd, psz_ipChromecast,
"tcps", NULL, NULL);
......
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