forked from enlightenment/efl
A few mem leaks plugged - getting to grips with valgrind
SVN revision: 8974
This commit is contained in:
parent
00865bb457
commit
1de79f8555
|
@ -626,6 +626,12 @@ int ecore_config_init(char *name) {
|
|||
}
|
||||
|
||||
int ecore_config_exit(void) {
|
||||
return ipc_exit();
|
||||
int ret;
|
||||
ret = ipc_exit();
|
||||
free(__app_name);
|
||||
free(__bundle_local);
|
||||
free(__server_local);
|
||||
free(__server_global);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,13 +10,13 @@ int ecore_config_load(void) {
|
|||
char file[PATH_MAX];
|
||||
snprintf(file, PATH_MAX, "%s/.e/apps/%s/config.db",getenv("HOME"),__app_name);
|
||||
return ecore_config_load_file(file);
|
||||
}
|
||||
}
|
||||
|
||||
int ecore_config_save(void) {
|
||||
char file[PATH_MAX];
|
||||
snprintf(file, PATH_MAX, "%s/.e/apps/%s/config.db",getenv("HOME"),__app_name);
|
||||
return ecore_config_save_file(file);
|
||||
}
|
||||
}
|
||||
|
||||
int ecore_config_load_file(char *file) {
|
||||
E_DB_File *db = NULL;
|
||||
|
@ -61,6 +61,7 @@ int ecore_config_load_file(char *file) {
|
|||
ecore_config_set_rgb(keys[x],data);
|
||||
else
|
||||
ecore_config_set_string(keys[x],data);
|
||||
free(data);
|
||||
} else {
|
||||
E(0, "Could not read key %s!\n", keys[x]);
|
||||
}
|
||||
|
@ -72,6 +73,7 @@ int ecore_config_load_file(char *file) {
|
|||
if (type) free(type);
|
||||
}
|
||||
e_db_close(db);
|
||||
free(keys);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue