edje edit - fix leaks spotted by coverity

fixes CID 1356630
This commit is contained in:
Carsten Haitzler 2016-07-08 15:33:19 +09:00
parent 4bc6ba4ff0
commit bfbb7b15f2
1 changed files with 2 additions and 0 deletions

View File

@ -9677,6 +9677,7 @@ edje_edit_image_replace(Evas_Object *obj, const char *name, const char *new_name
if (!eetf)
{
ERR("Unable to open \"%s\" for writing output", ed->path);
eina_iterator_free(it);
return EINA_FALSE;
}
@ -9706,6 +9707,7 @@ edje_edit_image_replace(Evas_Object *obj, const char *name, const char *new_name
if (!_edje_edit_collection_save(eetf, pce->ref))
{
eet_close(eetf);
eina_iterator_free(it);
return EINA_FALSE;
}
}