aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/eolian/database_validate.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2018-04-26 15:45:12 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2018-04-26 16:15:04 +0200
commit6f69a8c56d56f59d1d7c8c8d74a41718c3c95837 (patch)
treec46cb91224ab2413b152c9f14dba9f0e99c304bd /src/lib/eolian/database_validate.c
parentefl_mono: Names fixes after the big rename (diff)
downloadefl-6f69a8c56d56f59d1d7c8c8d74a41718c3c95837.tar.gz
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.
Diffstat (limited to 'src/lib/eolian/database_validate.c')
-rw-r--r--src/lib/eolian/database_validate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index 35cd9d5184..80674f0565 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -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);