Commit 4f5d55cf authored by Rafaël Carré's avatar Rafaël Carré

freetype: fix a segfault introduced in [21339]

FcConfigSetCurrent( p_sys->p_fontconfig ) is useless since we already use that configuration, and it will destroy it.
So, when we want to destroy it again when freetype module is closed, CRASH.
parent 47deab9f
...@@ -490,7 +490,6 @@ static void FontBuilder( vlc_object_t *p_this) ...@@ -490,7 +490,6 @@ static void FontBuilder( vlc_object_t *p_this)
if( t1 > 0 && t2 > 0 ) if( t1 > 0 && t2 > 0 )
msg_Dbg( p_filter, "Took %ld seconds", t2 - t1 ); msg_Dbg( p_filter, "Took %ld seconds", t2 - t1 );
FcConfigSetCurrent( p_sys->p_fontconfig );
p_sys->b_fontconfig_ok = VLC_TRUE; p_sys->b_fontconfig_ok = VLC_TRUE;
vlc_mutex_unlock( &p_sys->fontconfig_lock ); vlc_mutex_unlock( &p_sys->fontconfig_lock );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment