]> git.sesse.net Git - vlc/commitdiff
freetype: fix memleak
authorNaohiro KORIYAMA <nkoriyama@gmail.com>
Fri, 15 Jun 2012 06:12:34 +0000 (15:12 +0900)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 15 Jun 2012 13:50:58 +0000 (15:50 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/text_renderer/freetype.c

index 9cb9b7db645e8b7c6e618bed7871dcc1215893ec..0448ed4e11a063c4a916a161757038c1b731da09 100644 (file)
@@ -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. */