forked from enlightenment/efl
on a NULl data - delete the old key and dont add any new one
SVN revision: 18161
This commit is contained in:
parent
3b20105112
commit
c198ded7af
|
@ -161,6 +161,7 @@ ecore_evas_data_set(Ecore_Evas *ee, const char *key, const void *data)
|
||||||
if (!key) return;
|
if (!key) return;
|
||||||
|
|
||||||
ee->data = evas_hash_del(ee->data, key, NULL);
|
ee->data = evas_hash_del(ee->data, key, NULL);
|
||||||
|
if (data)
|
||||||
ee->data = evas_hash_add(ee->data, key, data);
|
ee->data = evas_hash_add(ee->data, key, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue