forked from enlightenment/efl
evas: be consistent in our check for NULL layer.
Fix CID 1191913.
This commit is contained in:
parent
e9d86e8719
commit
9b0127f102
|
@ -14,6 +14,7 @@ _evas_object_name_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, const char *n
|
|||
else
|
||||
{
|
||||
obj->name = strdup(name);
|
||||
if (obj->layer && obj->layer->evas && obj->layer->evas->name_hash)
|
||||
eina_hash_add(obj->layer->evas->name_hash, obj->name, eo_obj);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue