summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2020-02-06 14:43:38 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2020-02-06 14:43:38 +0100
commitd815c26f9c250e1745fc65e47bbd386016c34c3c (patch)
tree7fda3aed9b1937b3ab8ccb05734e475310ccb42c
parentf5e13284d7d6cb2f8795e1ae87ff5b407ed56837 (diff)
downloadefl-d815c26f9c250e1745fc65e47bbd386016c34c3c.tar.gz
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.
-rw-r--r--src/lib/eolian/eo_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index 730669b295..e6d80dd611 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -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