[vlc-devel] commit: fontconfig: fix memleak (typo). ( Rémi Duraffort )

git version control git at videolan.org
Thu Jul 30 14:48:26 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 30 14:45:25 2009 +0200| [f54a00216f6fbe34aea9f3ecfba27c2f5dae761a] | committer: Rémi Duraffort 

fontconfig: fix memleak (typo).

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

 modules/misc/freetype.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/misc/freetype.c b/modules/misc/freetype.c
index 82eaa0e..00090cc 100644
--- a/modules/misc/freetype.c
+++ b/modules/misc/freetype.c
@@ -438,7 +438,7 @@ error:
 #endif
     if( p_sys->p_face ) FT_Done_Face( p_sys->p_face );
     if( p_sys->p_library ) FT_Done_FreeType( p_sys->p_library );
-    free( psz_fontfile );
+    free( psz_fontfamily );
     free( p_sys );
     return VLC_EGENERIC;
 }




More information about the vlc-devel mailing list