forked from enlightenment/efl
parent
b9159044ed
commit
61b786c4e8
|
@ -9,14 +9,14 @@ evas_object_name_set(Evas_Object *obj, const char *name)
|
|||
MAGIC_CHECK_END();
|
||||
if (obj->name)
|
||||
{
|
||||
eina_hash_del(obj->layer->evas->name_hash, obj->name, obj);
|
||||
free(obj->name);
|
||||
eina_hash_del(obj->layer->evas->name_hash, obj->name, obj);
|
||||
free(obj->name);
|
||||
}
|
||||
if (!name) obj->name = NULL;
|
||||
else
|
||||
{
|
||||
obj->name = strdup(name);
|
||||
eina_hash_add(obj->layer->evas->name_hash, obj->name, obj);
|
||||
obj->name = strdup(name);
|
||||
eina_hash_add(obj->layer->evas->name_hash, obj->name, obj);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue