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
This commit is contained in:
reimar 2008-01-27 15:15:55 +00:00
parent fbae3928cd
commit 3b2a50aca9
1 changed files with 2 additions and 0 deletions

View File

@ -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();