Misusing API.

SVN revision: 55322
This commit is contained in:
Gustavo Lima Chaves 2010-12-06 12:45:26 +00:00
parent 2b354249df
commit d300d91cee
1 changed files with 3 additions and 3 deletions

View File

@ -761,14 +761,14 @@ _profile_reset(void *data,
selection = elm_list_item_data_get(elm_list_selected_item_get(li));
curr = elm_profile_current_get();
elm_config_save(); /* dump config into old profile's data dir */
pdir = elm_profile_dir_get(selection, EINA_TRUE);
if (!pdir)
return;
elm_config_save(); /* dump config into old profile's data dir */
ecore_file_recursive_rm(pdir);
free((void *)pdir);
elm_profile_dir_free(pdir);
elm_config_reload();