From 3b2a50aca9ac0760b4ae558f630e3b86836738e7 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 27 Jan 2008 15:15:55 +0000 Subject: Make sure sub_font is freed. Patch by Guillaume LECERF (foxcore gmail com). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25880 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index 8d779d682d..c48c97cd27 100644 --- a/mplayer.c +++ b/mplayer.c @@ -704,6 +704,8 @@ void exit_player_with_rc(const char* how, int rc){ #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(); -- cgit v1.2.3