elm_config: close file before moving it

This commit is contained in:
Stefan Schmidt 2016-01-14 16:36:00 +01:00
parent 7ee4b458c6
commit 2d871335bd
1 changed files with 1 additions and 1 deletions

View File

@ -780,6 +780,7 @@ _elm_config_profile_derived_save(const char *profile, Elm_Config_Derived *derive
if (ef)
{
ret = eet_data_write(ef, _config_derived_edd, "config", derived, 1);
eet_close(ef);
if (ret)
{
ecore_file_mv(buf, buf2);
@ -788,7 +789,6 @@ _elm_config_profile_derived_save(const char *profile, Elm_Config_Derived *derive
{
ERR("Error saving Elementary's derived configuration profile file");
}
eet_close(ef);
}
}