diff options
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-account-settings.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c index 064d4d215..9cb48c36c 100644 --- a/libempathy/empathy-account-settings.c +++ b/libempathy/empathy-account-settings.c @@ -1115,15 +1115,12 @@ empathy_account_settings_set_display_name_async ( return; } + g_free (priv->display_name); + priv->display_name = g_strdup (name); + if (priv->account == NULL) { - if (priv->display_name != NULL) - g_free (priv->display_name); - - priv->display_name = g_strdup (name); - g_simple_async_result_complete_in_idle (result); - return; } |