Commit 42a8f958 authored by Felix Paul Kühne's avatar Felix Paul Kühne

freetype: fixed crash when looking for an empty string as font name

(cherry picked from commit 48ef1e2f)
parent 03d85649
......@@ -721,6 +721,9 @@ static char* MacLegacy_Select( filter_t *p_filter, const char* psz_fontname,
*i_idx = 0;
if( psz_fontname == NULL )
return NULL;
msg_Dbg( p_filter, "looking for %s", psz_fontname );
cf_fontName = CFStringCreateWithCString( kCFAllocatorDefault, psz_fontname, kCFStringEncodingUTF8 );
......
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