[vlc-commits] freetype: fix double free

Rémi Denis-Courmont git at videolan.org
Mon Jun 10 20:25:55 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 10 21:24:55 2013 +0300| [77b3f79831e3c4359da80b737aefc247f3453f07] | committer: Rémi Denis-Courmont

freetype: fix double free

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=77b3f79831e3c4359da80b737aefc247f3453f07
---

 modules/text_renderer/freetype.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index ad27b6e..22346a6 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -2863,7 +2863,10 @@ static int Create( vlc_object_t *p_this )
 #else
 # ifdef _WIN32
         if( asprintf( &psz_fontfamily, "%s"DEFAULT_FONT_FILE, p_sys->psz_win_fonts_path ) == -1 )
+        {
+            psz_fontfamily = NULL;
             goto error;
+        }
 # else
         psz_fontfamily = strdup( DEFAULT_FONT_FILE );
 # endif



More information about the vlc-commits mailing list