eolian: specialize tmp free for typedef (avoid double free issue)

@fix
This commit is contained in:
Daniel Kolesa 2015-05-01 11:48:35 +01:00
parent ccbcf3db0b
commit a74000a65c
1 changed files with 4 additions and 1 deletions

View File

@ -692,7 +692,10 @@ _temps_free(Eo_Lexer_Temps *tmp)
eina_strbuf_free(buf);
EINA_LIST_FREE(tmp->type_defs, tp)
database_type_del(tp);
if (tp->type == EOLIAN_TYPE_ALIAS)
database_typedef_del(tp);
else
database_type_del(tp);
EINA_LIST_FREE(tmp->strs, s)
if (s) eina_stringshare_del(s);