[vlc-commits] packetizer: vc1: fix leak
Francois Cartegnie
git at videolan.org
Fri Sep 7 13:35:48 CEST 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Sep 7 12:15:40 2018 +0200| [399ce0fef515bbf0a19f3b1e545232197b5e18c0] | committer: Francois Cartegnie
packetizer: vc1: fix leak
(cherry picked from commit 988e4c03954beac39be22cf1da9f940d0928d52c)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=399ce0fef515bbf0a19f3b1e545232197b5e18c0
---
modules/packetizer/vc1.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/packetizer/vc1.c b/modules/packetizer/vc1.c
index 901e2c03d8..0780dbdb6a 100644
--- a/modules/packetizer/vc1.c
+++ b/modules/packetizer/vc1.c
@@ -214,6 +214,10 @@ static void Close( vlc_object_t *p_this )
packetizer_Clean( &p_sys->packetizer );
if( p_sys->p_frame )
block_Release( p_sys->p_frame );
+ if( p_sys->sh.p_sh )
+ block_Release( p_sys->sh.p_sh );
+ if( p_sys->ep.p_ep )
+ block_Release( p_sys->ep.p_ep );
cc_Exit( &p_sys->cc_next );
cc_Exit( &p_sys->cc );
More information about the vlc-commits
mailing list