Don't segfault in font_renderer_free.
handle can be NULL.
This commit is contained in:
parent
592cbdfda1
commit
047637dc24
|
@ -123,6 +123,9 @@ void font_renderer_free_output(struct font_output_list *output)
|
|||
|
||||
void font_renderer_free(font_renderer_t *handle)
|
||||
{
|
||||
if (!handle)
|
||||
return;
|
||||
|
||||
if (handle->face)
|
||||
FT_Done_Face(handle->face);
|
||||
if (handle->lib)
|
||||
|
|
Loading…
Reference in New Issue