theme = g_settings_get_string (gsettings_chat, key);
- if (empathy_theme_manager_find_theme (theme) != NULL)
- {
- path = empathy_theme_manager_find_theme (theme);
- g_free (theme);
- }
- else
+ path = empathy_theme_manager_find_theme (theme);
+ if (path == NULL)
{
g_warning ("Can't find theme: %s; fallback to 'Classic'",
theme);
- g_free (theme);
-
path = empathy_theme_manager_find_theme ("Classic");
if (path == NULL)
g_critical ("Can't find 'Classic theme");
theme_manager_emit_changed (self);
g_free (path);
+ g_free (theme);
}
static void