Don't segfault in font_renderer_free.

handle can be NULL.
This commit is contained in:
Themaister 2012-12-13 23:15:30 +01:00
parent 592cbdfda1
commit 047637dc24
1 changed files with 3 additions and 0 deletions

View File

@ -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)