# HG changeset patch # User reimar # Date 1201446955 0 # Node ID 43c76ab0bb84129d8c6f76c742d864e419d1fe71 # Parent 9ebd00825df26780dac53194028cfc0f2d6163a3 Make sure sub_font is freed. Patch by Guillaume LECERF (foxcore gmail com). diff -r 9ebd00825df2 -r 43c76ab0bb84 mplayer.c --- a/mplayer.c Sun Jan 27 15:14:02 2008 +0000 +++ b/mplayer.c Sun Jan 27 15:15:55 2008 +0000 @@ -704,6 +704,8 @@ #ifdef HAVE_FREETYPE current_module="uninit_font"; + if (sub_font && sub_font != vo_font) free_font_desc(sub_font); + sub_font = NULL; if (vo_font) free_font_desc(vo_font); vo_font = NULL; done_freetype();