Correctly init and shutdown eet and efreet.

This commit is contained in:
Tom Hacohen 2013-11-06 16:56:12 +00:00
parent c264be94b0
commit 4b31848b6f
1 changed files with 9 additions and 3 deletions

View File

@ -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();
}