[vlc-commits] cvdsub: fix invalid free
Thomas Guillem
git at videolan.org
Wed Nov 15 13:54:36 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Nov 15 13:52:27 2017 +0100| [505e3251957e034fc4dcbe0d737e5d18c647fe99] | committer: Thomas Guillem
cvdsub: fix invalid free
Don't free fmt/palette that come from the stack.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=505e3251957e034fc4dcbe0d737e5d18c647fe99
---
modules/codec/cvdsub.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/modules/codec/cvdsub.c b/modules/codec/cvdsub.c
index 4a1aeacb4c..f74a297b1b 100644
--- a/modules/codec/cvdsub.c
+++ b/modules/codec/cvdsub.c
@@ -530,7 +530,6 @@ static subpicture_t *DecodePacket( decoder_t *p_dec, block_t *p_data )
}
p_region = subpicture_region_New( &fmt );
- video_format_Clean( &fmt );
if( !p_region )
{
msg_Err( p_dec, "cannot allocate SPU region" );
More information about the vlc-commits
mailing list