stefan pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=f2245654cec8364fde92514b960f7aa064d71404

commit f2245654cec8364fde92514b960f7aa064d71404
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Thu Jan 14 16:36:00 2016 +0100

    elm_config: close file before moving it
---
 src/lib/elm_config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c
index 113c92c..d01ef72 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
    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);
      }
 }
 

-- 


Reply via email to