summaryrefslogtreecommitdiff
path: root/src/lib/eolian
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 /src/lib/eolian
parentf5e13284d7d6cb2f8795e1ae87ff5b407ed56837 (diff)
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.
Diffstat (limited to 'src/lib/eolian')
-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,
564 def->base.name = name; 564 def->base.name = name;
565 if (cname) 565 if (cname)
566 { 566 {
567 def->base.c_name = cname; 567 def->base.c_name = eina_stringshare_ref(cname);
568 eo_lexer_dtor_pop(ls); 568 eo_lexer_dtor_pop(ls);
569 } 569 }
570 else 570 else