[vlc-commits] freetype: Fix leak on error path
Hugo Beauzée-Luyssen
git at videolan.org
Wed Dec 2 16:36:30 CET 2015
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Nov 30 11:58:11 2015 +0100| [6afa409d5f696673e48238feb1bee701f9c0d164] | committer: Hugo Beauzée-Luyssen
freetype: Fix leak on error path
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6afa409d5f696673e48238feb1bee701f9c0d164
---
modules/text_renderer/freetype/fonts/win32.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/modules/text_renderer/freetype/fonts/win32.c b/modules/text_renderer/freetype/fonts/win32.c
index a8494ad..39fa523 100644
--- a/modules/text_renderer/freetype/fonts/win32.c
+++ b/modules/text_renderer/freetype/fonts/win32.c
@@ -598,10 +598,7 @@ char* Dummy_Select( filter_t *p_filter, const char* psz_font,
/* Get Windows Font folder */
char *psz_win_fonts_path = GetWindowsFontPath();
if( asprintf( &psz_fontname, "%s\\%s", psz_win_fonts_path, psz_font ) == -1 )
- {
psz_fontname = NULL;
- return NULL;
- }
free(psz_win_fonts_path);
return psz_fontname;
More information about the vlc-commits
mailing list