forked from enlightenment/efl
eo - fi missed error condition if eoid passed in is NULL
in some cases construction can fail badly and this causes a crash... eoid is NULL going in and this causes a cascade of failure. survive and be more robust.
This commit is contained in:
parent
5dd52fd09b
commit
c4e96e4e83
|
@ -1023,6 +1023,7 @@ cleanup:
|
|||
EAPI Eo *
|
||||
_efl_add_end(Eo *eo_id, Eina_Bool is_ref, Eina_Bool is_fallback)
|
||||
{
|
||||
if (!eo_id) return NULL;
|
||||
Eo *ret = efl_finalize(eo_id);
|
||||
ret = _efl_add_internal_end(eo_id, ret);
|
||||
|
||||
|
|
Loading…
Reference in New Issue