forked from enlightenment/efl
edje entry - handle insanely low lemory if list_append fails
this fixes coverity CID 1357752
This commit is contained in:
parent
c827d42fbd
commit
b146b60974
|
@ -1142,7 +1142,11 @@ _anchors_update(Evas_Textblock_Cursor *c EINA_UNUSED, Evas_Object *o, Entry *en)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
an->sel = eina_list_append(an->sel, sel);
|
an->sel = eina_list_append(an->sel, sel);
|
||||||
|
if (!an->sel)
|
||||||
|
{
|
||||||
|
ERR("Running very low on memory");
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (ed->item_provider.func)
|
if (ed->item_provider.func)
|
||||||
{
|
{
|
||||||
ob = _item_obj_get(an, o, smart, clip);
|
ob = _item_obj_get(an, o, smart, clip);
|
||||||
|
|
Loading…
Reference in New Issue