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

chromecast: descriptor leak

parent 3956c4a6
......@@ -131,6 +131,7 @@ int intf_sys_t::connectChromecast(char *psz_ipChromecast)
if (p_tls == NULL)
{
net_Close(fd);
vlc_tls_Delete(p_creds);
return -1;
}
......@@ -146,7 +147,7 @@ void intf_sys_t::disconnectChromecast()
{
if (p_tls)
{
vlc_tls_SessionDelete(p_tls);
vlc_tls_Close(p_tls);
vlc_tls_Delete(p_creds);
p_tls = NULL;
setConnectionStatus(CHROMECAST_DISCONNECTED);
......
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