forked from enlightenment/efl
[PATCH 2/3] group_del: the object was not being deleted from hash
In edje_edit_group_del, the object was not being removed from hash table collection SVN revision: 51256
This commit is contained in:
parent
7a4e626074
commit
5a83ffea9a
|
@ -998,7 +998,6 @@ edje_edit_group_del(Evas_Object *obj, const char *group_name)
|
||||||
ERR("EEK: Group \"%s\" still in use !", group_name);
|
ERR("EEK: Group \"%s\" still in use !", group_name);
|
||||||
die = e->ref;
|
die = e->ref;
|
||||||
e->ref = NULL;
|
e->ref = NULL;
|
||||||
eina_hash_del(ed->file->collection, group_name, e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EINA_LIST_FOREACH(ed->file->collection_cache, l, g)
|
EINA_LIST_FOREACH(ed->file->collection_cache, l, g)
|
||||||
|
@ -1024,6 +1023,7 @@ edje_edit_group_del(Evas_Object *obj, const char *group_name)
|
||||||
|
|
||||||
/* Free Group */
|
/* Free Group */
|
||||||
if (die) _edje_collection_free(ed->file, die, e);
|
if (die) _edje_collection_free(ed->file, die, e);
|
||||||
|
eina_hash_del(ed->file->collection, group_name, e);
|
||||||
|
|
||||||
/* we need to save everything to make sure the file won't have broken
|
/* we need to save everything to make sure the file won't have broken
|
||||||
* references the next time is loaded */
|
* references the next time is loaded */
|
||||||
|
|
Loading…
Reference in New Issue