[vlc-commits] freetype: fix potential memory leak (cid #1048945)
Rémi Duraffort
git at videolan.org
Mon Nov 25 23:01:01 CET 2013
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Nov 25 19:33:11 2013 +0100| [687a362c7648d6a4372b3205d099b5d2e879ef7f] | committer: Rémi Duraffort
freetype: fix potential memory leak (cid #1048945)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=687a362c7648d6a4372b3205d099b5d2e879ef7f
---
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 2870aa3..bd78c0d 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -2015,7 +2015,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