Commit a15bef7c authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

fontconfig: fix memory leak

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit 38dab127daa980ca706b5315be17736f8f795e42)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5fa429b3
......@@ -95,7 +95,7 @@ diff -ruN fontconfig/src/fcxml.c fontconfig.new/src/fcxml.c
if (!config)
goto bail0;
- if (!FcConfigAddDir (config, (FcChar8 *) FC_DEFAULT_FONTS))
+ char *path = malloc( MAX_PATH + 1 );
+ char path[MAX_PATH + 8];
+ GetWindowsDirectory( path, MAX_PATH + 1 );
+ strcat( path, "\\fonts" );
+// printf( "Fonts dir: %s\n", path );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment