Mercurial > mplayer.hg
changeset 25852:43c76ab0bb84
Make sure sub_font is freed.
Patch by Guillaume LECERF (foxcore gmail com).
author | reimar |
---|---|
date | Sun, 27 Jan 2008 15:15:55 +0000 |
parents | 9ebd00825df2 |
children | 0dffd5c6422e |
files | mplayer.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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();