oooh bad memory pointer handling as part of group inheritance (part

overriding) patches....!!!!! fix!



SVN revision: 64028
This commit is contained in:
Carsten Haitzler 2011-10-13 00:09:04 +00:00
parent ab7d9bdd84
commit 850ba388a2
1 changed files with 4 additions and 3 deletions

View File

@ -2647,13 +2647,14 @@ st_collections_group_parts_part_name(void)
check_arg_count(1);
pc = eina_list_data_get(eina_list_last(edje_collections));
ep = pc->parts[pc->parts_count - 1];
ep = current_part;
ep->name = parse_str(0);
if (ep->name)
{
unsigned int i;
for (i = 0; i < pc->parts_count - 1; ++i)
for (i = 0; i < (pc->parts_count - 1); i++)
{
if (pc->parts[i]->name && (!strcmp(pc->parts[i]->name, ep->name)))
{
@ -2669,7 +2670,7 @@ st_collections_group_parts_part_name(void)
free(ep);
pc->parts_count--;
pc->parts = realloc(pc->parts, pc->parts_count * sizeof (Edje_Part *));
current_part = pc->parts[i];
ep = current_part = pc->parts[i];
epp->can_override = EINA_FALSE;
}
}