[vlc-commits] freetype: fix potential memory leak (cid #1048945)
Rémi Duraffort
git at videolan.org
Mon Dec 9 19:39:35 CET 2013
vlc/vlc-2.0 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Nov 25 19:33:11 2013 +0100| [900231675e473ff75f5a4e71bf77d8fc255babe4] | committer: Felix Paul Kühne
freetype: fix potential memory leak (cid #1048945)
(cherry picked from commit 687a362c7648d6a4372b3205d099b5d2e879ef7f)
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=900231675e473ff75f5a4e71bf77d8fc255babe4
---
modules/text_renderer/freetype.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index 622bb11..2e16aa9 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -2456,7 +2456,11 @@ static int RenderCommon( filter_t *p_filter, subpicture_region_t *p_region_out,
strlen( p_region_in->psz_html ),
true );
if( unlikely(p_sub == NULL) )
+ {
+ free( psz_text );
+ free( pp_styles );
return VLC_SUCCESS;
+ }
xml_reader_t *p_xml_reader = p_filter->p_sys->p_xml;
if( !p_xml_reader )
More information about the vlc-commits
mailing list