eolian: clear chash on each iteration during validation

This is necessary because inheritance trees need to be validated
individually for proper name conflict checks. It also prevents
eina_hash_add related errors.
This commit is contained in:
Daniel Kolesa 2018-04-26 15:45:12 +02:00
parent edf05278ed
commit 6f69a8c56d
1 changed files with 1 additions and 0 deletions

View File

@ -899,6 +899,7 @@ database_validate(const Eolian_Unit *src)
EINA_ITERATOR_FOREACH(iter, cl)
{
eina_hash_free_buckets(nhash);
eina_hash_free_buckets(chash);
if (!_validate_class(&vals, cl, nhash, chash))
{
eina_iterator_free(iter);