[vlc-commits] subsdec: fix memory leak
Rémi Denis-Courmont
git at videolan.org
Sat Aug 22 09:38:14 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 22 10:36:20 2015 +0300| [01b8197ce99b96553809ead21d63e39ab420c383] | committer: Rémi Denis-Courmont
subsdec: fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=01b8197ce99b96553809ead21d63e39ab420c383
---
modules/codec/subsdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c
index 5358a61..fed0325 100644
--- a/modules/codec/subsdec.c
+++ b/modules/codec/subsdec.c
@@ -638,6 +638,7 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
p_spu_sys->align = SUBPICTURE_ALIGN_BOTTOM | p_sys->i_align;
p_spu_sys->p_segments = ParseSubtitles( &p_spu_sys->align, psz_subtitle );
+ free( psz_subtitle );
//FIXME: Remove the variable?
//if( var_InheritBool( p_dec, "subsdec-formatted" ) )
More information about the vlc-commits
mailing list