in the event of e_comp evas being null ... dont just fall over and die

@fix
This commit is contained in:
Carsten Haitzler 2020-01-04 16:02:46 +00:00
parent 6fddd05d95
commit 04d395f2dd
1 changed files with 5 additions and 0 deletions

View File

@ -3021,6 +3021,11 @@ e_comp_object_client_add(E_Client *ec)
_e_comp_smart_init();
o = evas_object_smart_add(e_comp->evas, _e_comp_smart);
cw = evas_object_smart_data_get(o);
if (!cw)
{
evas_object_del(o);
return NULL;
}
evas_object_data_set(o, "E_Client", ec);
// REFD(ec, 9);
// e_object_ref(E_OBJECT(ec));