aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHosang Kim <hosang12.kim@samsung.com>2016-03-15 11:23:28 -0700
committerCedric Bail <cedric@osg.samsung.com>2016-03-15 11:23:32 -0700
commit544bd91e5f8aafc1135f7e8449225a420aacbe06 (patch)
tree4450ef166ae4a06552ac0b63e4381fc4c7743a26
parenteina: fix eina vector in case output vector the same as target vector (diff)
downloadefl-544bd91e5f8aafc1135f7e8449225a420aacbe06.tar.gz
edje_cc: fix group inheriting
Summary: When edje_cc inherits group, group's script wasn't copied. So base group and inherited groups use same pointer. When edje_cc makes lookups for script, loopkups is overwritten. Test Plan: elementary_test -> shown error log Reviewers: Hermet, woohyun, cedric, raster Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D3796 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
-rw-r--r--src/bin/edje/edje_cc_handlers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index 173ad31a26..8fb43cf15f 100644
--- a/src/bin/edje/edje_cc_handlers.c
+++ b/src/bin/edje/edje_cc_handlers.c
@@ -4447,8 +4447,8 @@ st_collections_group_inherit(void)
cp->script = STRDUP(cp2->script);
cp->original = STRDUP(cp2->original);
cd->is_lua = cd2->is_lua;
- cd->shared = cd2->shared;
- cd->original = cd2->original;
+ cd->shared = STRDUP(cd2->shared);
+ cd->original = STRDUP(cd2->original);
cd->programs = eina_list_append(cd->programs, cp);
data_queue_copied_anonymous_lookup(pc, &(cp2->id), &(cp->id));
}