[vlc-commits] freetype: fix potential memory leak (cid #1048945)
Rémi Duraffort
git at videolan.org
Tue Nov 26 08:46:18 CET 2013
vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Nov 25 19:33:11 2013 +0100| [1f6dcc728faf40cac1f41d1846af5e3279de5e02] | committer: Jean-Baptiste Kempf
freetype: fix potential memory leak (cid #1048945)
(cherry picked from commit 687a362c7648d6a4372b3205d099b5d2e879ef7f)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=1f6dcc728faf40cac1f41d1846af5e3279de5e02
---
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 05fa2a2..25d6b15 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -2621,7 +2621,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