Commit 07c68185 authored by Francois Cartegnie's avatar Francois Cartegnie

freetype: fix null dereference (cid #1346944)

parent f53c706b
......@@ -1261,7 +1261,7 @@ static int LayoutLine( filter_t *p_filter,
pen.y += p_bitmaps->i_y_advance;
/* Get max advance for grid mode */
if( b_grid && i_font_max_advance_y == 0 )
if( b_grid && i_font_max_advance_y == 0 && p_face )
{
i_font_max_advance_y = abs( FT_FLOOR( FT_MulFix( p_face->max_advance_height,
p_face->size->metrics.y_scale ) ) );
......
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