fix amazing chain crash when upgrading configs

SVN revision: 73421
This commit is contained in:
Mike Blumenkrantz 2012-07-06 15:10:27 +00:00
parent 7ab6675a49
commit 838a240e9b
1 changed files with 7 additions and 2 deletions

View File

@ -1213,8 +1213,13 @@ e_config_load(void)
IFCFGEND;
IFCFG(0x0151);
COPYPTR(desklock_backgrounds);
e_config->desklock_backgrounds = eina_list_append(e_config->desklock_backgrounds, tcfg->desklock_background);
if (tcfg->desklock_background)
{
E_Config_Desklock_Background *cbg;
cbg = E_NEW(E_Config_Desklock_Background, 1);
cbg->file = tcfg->desklock_background;
e_config->desklock_backgrounds = eina_list_append(e_config->desklock_backgrounds, cbg);
}
if (e_config->desklock_backgrounds && (!e_config->desklock_backgrounds->data))
e_config->desklock_backgrounds = eina_list_free(e_config->desklock_backgrounds);
tcfg->desklock_background = NULL;