summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-01-14 16:36:00 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2016-01-14 16:36:00 +0100
commitf2245654cec8364fde92514b960f7aa064d71404 (patch)
treefade9bac193a2102663af6772222f28dbd54d18e
parent6b84a60928fcdc57f035a22af783355a139b1819 (diff)
elm_config: close file before moving it
-rw-r--r--src/lib/elm_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c
index 113c92cc9..d01ef7265 100644
--- a/src/lib/elm_config.c
+++ b/src/lib/elm_config.c
@@ -780,6 +780,7 @@ _elm_config_profile_derived_save(const char *profile, Elm_Config_Derived *derive
780 if (ef) 780 if (ef)
781 { 781 {
782 ret = eet_data_write(ef, _config_derived_edd, "config", derived, 1); 782 ret = eet_data_write(ef, _config_derived_edd, "config", derived, 1);
783 eet_close(ef);
783 if (ret) 784 if (ret)
784 { 785 {
785 ecore_file_mv(buf, buf2); 786 ecore_file_mv(buf, buf2);
@@ -788,7 +789,6 @@ _elm_config_profile_derived_save(const char *profile, Elm_Config_Derived *derive
788 { 789 {
789 ERR("Error saving Elementary's derived configuration profile file"); 790 ERR("Error saving Elementary's derived configuration profile file");
790 } 791 }
791 eet_close(ef);
792 } 792 }
793} 793}
794 794