on a NULl data - delete the old key and dont add any new one

SVN revision: 18161
This commit is contained in:
Carsten Haitzler 2005-10-31 06:21:40 +00:00
parent 3b20105112
commit c198ded7af
1 changed files with 3 additions and 2 deletions

View File

@ -159,9 +159,10 @@ ecore_evas_data_set(Ecore_Evas *ee, const char *key, const void *data)
}
if (!key) return;
ee->data = evas_hash_del(ee->data, key, NULL);
ee->data = evas_hash_add(ee->data, key, data);
if (data)
ee->data = evas_hash_add(ee->data, key, data);
}
#define IFC(_ee, _fn) if (_ee->engine.func->_fn) {_ee->engine.func->_fn