edje-codegen: Now really fix the mem leak without running into a double free.

The missing free was only for one of the paths to the end label. The other one
freed it before already. Take this into account to avoid the double free.
This commit is contained in:
Stefan Schmidt 2013-06-13 14:28:07 +01:00
parent 64c7bd14df
commit 90aee3addd
1 changed files with 5 additions and 1 deletions

View File

@ -811,7 +811,11 @@ _parse_parts(Evas_Object *ed)
if (type == EDJE_PART_TYPE_EXTERNAL)
{
ei = calloc(1, sizeof(Part_External_Info));
if (!ei) goto end;
if (!ei)
{
free(apiname);
goto end;
}
ei->description = description;
ei->source = edje_edit_part_source_get(ed, name);
ei->apiname = apiname;