forked from enlightenment/efl
elm_config: close file before moving it
This commit is contained in:
parent
7ee4b458c6
commit
2d871335bd
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue