forked from enlightenment/efl
evas - patch in one more if check for obj layer to avoid shutdown crash
this should fix T2715
This commit is contained in:
parent
6b1af3c55a
commit
483cec924b
|
@ -816,6 +816,7 @@ _format_unref_free(const Evas_Object *eo_obj, Evas_Object_Textblock_Format *fmt)
|
||||||
if (fmt->ref > 0) return;
|
if (fmt->ref > 0) return;
|
||||||
if (fmt->font.fdesc) evas_font_desc_unref(fmt->font.fdesc);
|
if (fmt->font.fdesc) evas_font_desc_unref(fmt->font.fdesc);
|
||||||
if (fmt->font.source) eina_stringshare_del(fmt->font.source);
|
if (fmt->font.source) eina_stringshare_del(fmt->font.source);
|
||||||
|
if ((obj->layer) && (obj->layer->evas))
|
||||||
evas_font_free(obj->layer->evas->evas, fmt->font.font);
|
evas_font_free(obj->layer->evas->evas, fmt->font.font);
|
||||||
free(fmt);
|
free(fmt);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue