Commit 38dab127 authored by Hannes Domani's avatar Hannes Domani Committed by Rémi Denis-Courmont

fontconfig: fix memory leak

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 231d1b6a
......@@ -110,7 +110,7 @@ diff -ruN fontconfig/src/fcinit.c fontconfig.new/src/fcinit.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