evas - patch in one more if check for obj layer to avoid shutdown crash

this should fix T2715
This commit is contained in:
Carsten Haitzler 2015-11-05 09:41:35 +09:00
parent 6b1af3c55a
commit 483cec924b
1 changed files with 2 additions and 1 deletions

View File

@ -816,7 +816,8 @@ _format_unref_free(const Evas_Object *eo_obj, Evas_Object_Textblock_Format *fmt)
if (fmt->ref > 0) return;
if (fmt->font.fdesc) evas_font_desc_unref(fmt->font.fdesc);
if (fmt->font.source) eina_stringshare_del(fmt->font.source);
evas_font_free(obj->layer->evas->evas, fmt->font.font);
if ((obj->layer) && (obj->layer->evas))
evas_font_free(obj->layer->evas->evas, fmt->font.font);
free(fmt);
}