[vlc-commits] fontconfig: fix memory leak

Hannes Domani git at videolan.org
Thu Aug 28 21:57:32 CEST 2014


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Thu Aug 28 15:22:22 2014 +0200| [38dab127daa980ca706b5315be17736f8f795e42] | committer: Rémi Denis-Courmont

fontconfig: fix memory leak

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 contrib/src/fontconfig/fontconfig-noxml2.patch |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/src/fontconfig/fontconfig-noxml2.patch b/contrib/src/fontconfig/fontconfig-noxml2.patch
index af95d56..b5a3ee4 100644
--- a/contrib/src/fontconfig/fontconfig-noxml2.patch
+++ b/contrib/src/fontconfig/fontconfig-noxml2.patch
@@ -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 );



More information about the vlc-commits mailing list