edje_edit: Check return of _edje_edit_edje_file_save and close files if we fail

We check the retrun of _edje_edit_edje_file_save everywhere else and should do
here as well.

CID 1224759
This commit is contained in:
Stefan Schmidt 2014-09-04 11:26:26 +02:00
parent 7e2d60a63c
commit cfba724a37
1 changed files with 6 additions and 1 deletions

View File

@ -11219,7 +11219,12 @@ edje_edit_clean_save_as(Evas_Object *obj, const char* new_file_name)
}
/* copying file structure */
_edje_edit_edje_file_save(ef_out, ed->file);
if (!_edje_edit_edje_file_save(ef_out, ed->file))
{
eet_close(ef);
eet_close(ef_out);
return EINA_FALSE;
}
int count = 0;
char **ent = eet_list(ef, "*", &count);