[vlc-commits] chromecast: descriptor leak

Rémi Denis-Courmont git at videolan.org
Tue Jan 12 21:23:24 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jan 12 22:14:30 2016 +0200| [153d9e357992fa0b848198ee204059c994377f78] | committer: Rémi Denis-Courmont

chromecast: descriptor leak

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=153d9e357992fa0b848198ee204059c994377f78
---

 modules/stream_out/chromecast/chromecast_ctrl.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 89a7958..a547cbb 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -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);



More information about the vlc-commits mailing list