eolian: fix missing stringshare_ref

This was properly applied to all cases except this one where it
was overlooked/forgotten. That resulted in the @c_name() feature
with enums being broken because of bad memory.

Fixes T8596.
This commit is contained in:
Daniel Kolesa 2020-02-06 14:43:38 +01:00
parent f5e13284d7
commit d815c26f9c
1 changed files with 1 additions and 1 deletions

View File

@ -564,7 +564,7 @@ parse_enum(Eo_Lexer *ls, const char *name, Eina_Bool is_extern,
def->base.name = name;
if (cname)
{
def->base.c_name = cname;
def->base.c_name = eina_stringshare_ref(cname);
eo_lexer_dtor_pop(ls);
}
else