tasn pushed a commit to branch master.

http://git.enlightenment.org/apps/ecrire.git/commit/?id=4b31848b6fbfab96b6e1ea5289c4dd87408c19ac

commit 4b31848b6fbfab96b6e1ea5289c4dd87408c19ac
Author: Tom Hacohen <t...@stosb.com>
Date:   Wed Nov 6 16:56:12 2013 +0000

    Correctly init and shutdown eet and efreet.
---
 src/bin/cfg.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/bin/cfg.c b/src/bin/cfg.c
index 24afcaf..a4c6dd1 100644
--- a/src/bin/cfg.c
+++ b/src/bin/cfg.c
@@ -43,15 +43,23 @@ ecrire_cfg_shutdown(void)
       free(config_file);
 
    _ent_cfg_descriptor_shutdown();
+
+   eet_shutdown();
+   efreet_shutdown();
 }
 
 void
 ecrire_cfg_init(const char *file)
 {
    const char *ext = ".cfg";
-   const char *path = efreet_config_home_get();
+   const char *path;
    size_t len;
 
+   efreet_init();
+   eet_init();
+
+   path = efreet_config_home_get();
+
    if (!path || !file)
       return;
 
@@ -63,8 +71,6 @@ ecrire_cfg_init(const char *file)
    config_file = malloc(len + 1);
    snprintf(config_file, len + 1, "%s/%s%s", path, file, ext);
 
-   eet_init();
-
    _ent_cfg_descriptor_init();
 }
 

-- 


Reply via email to