[vlc-commits] chromecast: demux: fix leak

Steve Lhomme git at videolan.org
Fri Aug 5 16:13:59 CEST 2016


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Aug  4 14:16:43 2016 +0200| [e26f43ef75b6c11c1d4931bddf3f132159f63248] | committer: Jean-Baptiste Kempf

chromecast: demux: fix leak

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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)



More information about the vlc-commits mailing list