[vlc-commits] freetype: fix memleak

Naohiro KORIYAMA git at videolan.org
Fri Jun 15 13:51:02 CEST 2012


vlc | branch: master | Naohiro KORIYAMA <nkoriyama at gmail.com> | Fri Jun 15 15:12:34 2012 +0900| [7b2d11f24111230fcac7b6beac554b7934120ddc] | committer: Jean-Baptiste Kempf

freetype: fix memleak

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/text_renderer/freetype.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index 9cb9b7d..0448ed4 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -2811,6 +2811,10 @@ static void Destroy( vlc_object_t *p_this )
     if( p_sys->p_xml ) xml_ReaderDelete( p_sys->p_xml );
     free( p_sys->psz_fontfamily );
 
+#ifdef WIN32
+    free( p_sys->psz_win_fonts_path );
+#endif
+
     /* FcFini asserts calling the subfunction FcCacheFini()
      * even if no other library functions have been made since FcInit(),
      * so don't call it. */



More information about the vlc-commits mailing list