[vlc-commits] fontconfig: fix memory leak

Hannes Domani git at videolan.org
Thu Aug 28 22:08:50 CEST 2014


vlc/vlc-2.2 | branch: master | Hannes Domani <ssbssa at yahoo.de> | Thu Aug 28 15:22:22 2014 +0200| [a15bef7cbb449dca267f68eb5f28ad13a9220ae9] | committer: Jean-Baptiste Kempf

fontconfig: fix memory leak

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 38dab127daa980ca706b5315be17736f8f795e42)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 a560f96..0f35e99 100644
--- a/contrib/src/fontconfig/fontconfig-noxml2.patch
+++ b/contrib/src/fontconfig/fontconfig-noxml2.patch
@@ -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 );



More information about the vlc-commits mailing list