]> git.sesse.net Git - vlc/commitdiff
freetype: fix double free
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 10 Jun 2013 18:24:55 +0000 (21:24 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 10 Jun 2013 18:25:41 +0000 (21:25 +0300)
modules/text_renderer/freetype.c

index ad27b6ef42091acc3ec6d99c54a6d1ab068cf89e..22346a6b5f1b2638cf944506313484bf54bec64e 100644 (file)
@@ -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