forked from enlightenment/efl
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:
parent
f5e13284d7
commit
d815c26f9c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue