[vlc-commits] demux/pva: Close: properly release allocated block-chain

Filip Roséen git at videolan.org
Fri May 19 14:56:34 CEST 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Fri May 19 14:44:30 2017 +0200| [300e7430801d4446ec928402d454abe0e14a0bed] | committer: Jean-Baptiste Kempf

demux/pva: Close: properly release allocated block-chain

p_sys->p_es and p_sys->p_pes are treated as block-chains, and not as
single blocks. As such block_ChainRelease shall be used to release the
full chain, as block_Release will only release the front-most block.

fixes: #17997

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

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

 modules/demux/pva.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/pva.c b/modules/demux/pva.c
index d76723ceec..978893aab0 100644
--- a/modules/demux/pva.c
+++ b/modules/demux/pva.c
@@ -128,8 +128,8 @@ static void Close( vlc_object_t *p_this )
     demux_t     *p_demux = (demux_t*)p_this;
     demux_sys_t *p_sys = p_demux->p_sys;
 
-    if( p_sys->p_es )  block_Release( p_sys->p_es );
-    if( p_sys->p_pes ) block_Release( p_sys->p_pes );
+    if( p_sys->p_es )  block_ChainRelease( p_sys->p_es );
+    if( p_sys->p_pes ) block_ChainRelease( p_sys->p_pes );
 
     free( p_sys );
 }



More information about the vlc-commits mailing list