evas_gl_image: add null check

This commit is contained in:
WooHyun Jung 2018-04-05 11:10:43 +09:00
parent 3bc65be44d
commit 07f7fee2d0
1 changed files with 2 additions and 1 deletions

View File

@ -745,7 +745,8 @@ evas_gl_common_image_free(Evas_GL_Image *im)
if (im->fglyph)
{
im->gc->font_glyph_images = eina_list_remove(im->gc->font_glyph_images, im);
if (im->gc)
im->gc->font_glyph_images = eina_list_remove(im->gc->font_glyph_images, im);
im->fglyph->ext_dat = NULL;
im->fglyph->ext_dat_free = NULL;
}