edje entry - handle insanely low lemory if list_append fails

this fixes coverity CID 1357752
This commit is contained in:
Carsten Haitzler 2016-08-08 15:33:18 +09:00
parent c827d42fbd
commit b146b60974
1 changed files with 5 additions and 1 deletions

View File

@ -1142,7 +1142,11 @@ _anchors_update(Evas_Textblock_Cursor *c EINA_UNUSED, Evas_Object *o, Entry *en)
break;
}
an->sel = eina_list_append(an->sel, sel);
if (!an->sel)
{
ERR("Running very low on memory");
break;
}
if (ed->item_provider.func)
{
ob = _item_obj_get(an, o, smart, clip);