[vlc-devel] [PATCH] chromecast: demux: fix leak

Steve Lhomme robux4 at videolabs.io
Thu Aug 4 14:16:43 CEST 2016


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

diff --git a/modules/stream_out/chromecast/chromecast_demux.cpp b/modules/stream_out/chromecast/chromecast_demux.cpp
index fdbc247..6a939f4 100644
--- a/modules/stream_out/chromecast/chromecast_demux.cpp
+++ b/modules/stream_out/chromecast/chromecast_demux.cpp
@@ -66,6 +66,8 @@ struct demux_sys_t
     {
         p_renderer->pf_set_title( p_renderer->p_opaque, NULL );
         p_renderer->pf_set_artwork( p_renderer->p_opaque, NULL );
+
+        demux_Delete(p_demux->p_next);
     }
 
     void setPauseState(bool paused)
-- 
2.8.2



More information about the vlc-devel mailing list