mirror of https://github.com/mpv-player/mpv
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:
parent
fbae3928cd
commit
3b2a50aca9
|
@ -704,6 +704,8 @@ void exit_player_with_rc(const char* how, int rc){
|
||||||
|
|
||||||
#ifdef HAVE_FREETYPE
|
#ifdef HAVE_FREETYPE
|
||||||
current_module="uninit_font";
|
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);
|
if (vo_font) free_font_desc(vo_font);
|
||||||
vo_font = NULL;
|
vo_font = NULL;
|
||||||
done_freetype();
|
done_freetype();
|
||||||
|
|
Loading…
Reference in New Issue