edje: edje_edit - don't unlick(NULL)

Summery: fix, posible to delete file by 'NULL' path (T1760)

@fix
This commit is contained in:
Vyacheslav Reutskiy 2014-10-27 09:21:45 +00:00
parent 6de8e3104d
commit 4d7c0fe3d9
1 changed files with 5 additions and 2 deletions

View File

@ -9466,8 +9466,11 @@ _edje_edit_embryo_rebuild(Edje_Edit *eed)
the_way_out:
fclose(f);
the_doorway:
unlink(tmp_out);
eina_tmpstr_del(tmp_out);
if (tmp_out)
{
unlink(tmp_out);
eina_tmpstr_del(tmp_out);
}
almost_out:
unlink(tmp_in);
eina_tmpstr_del(tmp_in);