efreet: Fix last fix, only access theme inside if

SVN revision: 74879
This commit is contained in:
Sebastian Dransfeld 2012-08-04 17:11:18 +00:00
parent 38da638442
commit 9b8a67bb31
1 changed files with 5 additions and 2 deletions

View File

@ -893,8 +893,11 @@ main(int argc, char **argv)
{
if (!strncmp(keys[i], "__efreet", 8)) continue;
theme = eet_data_read(theme_ef, theme_edd, keys[i]);
theme->valid = 0;
if (theme) eina_hash_direct_add(icon_themes, theme->theme.name.internal, theme);
if (theme)
{
theme->valid = 0;
eina_hash_direct_add(icon_themes, theme->theme.name.internal, theme);
}
}
free(keys);
}