X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-account-view.c;h=8875b0030174b2d5285ddbb4147edc11b037ad08;hb=e88463756e12926277a032f2db233bd90b4694b0;hp=236760e6adec9819b0852b9dfa64f41a59a29c23;hpb=6ebc23126acdfb8aec11416e4c197c6bee70bef0;p=modest diff --git a/src/widgets/modest-account-view.c b/src/widgets/modest-account-view.c index 236760e..8875b00 100644 --- a/src/widgets/modest-account-view.c +++ b/src/widgets/modest-account-view.c @@ -207,10 +207,8 @@ update_account_view (ModestAccountMgr *account_mgr, ModestAccountView *view) cursor = account_names = modest_account_mgr_account_names (account_mgr, TRUE /* only enabled accounts. */); - if(account_names == NULL) - { - printf ("debug: modest_account_mgr_account_names() returned NULL\n"); - } + if (!account_names) + g_warning ("debug: modest_account_mgr_account_names() returned NULL\n"); while (cursor) { gchar *account_name; @@ -251,7 +249,9 @@ update_account_view (ModestAccountMgr *account_mgr, ModestAccountView *view) modest_account_mgr_free_account_data (account_mgr, account_data); cursor = cursor->next; } - g_slist_free (account_names); + + modest_account_mgr_free_account_names (account_names); + account_names = NULL; /* Try to re-select the same account: */ if (selected_name) { @@ -300,8 +300,8 @@ on_account_busy_changed(ModestAccountMgr *account_mgr, const gchar *account_name return; gchar* last_updated_string = get_last_updated_string(account_mgr, account_data); gtk_list_store_set(model, &iter, - MODEST_ACCOUNT_VIEW_LAST_UPDATED_COLUMN, last_updated_string, - -1); + MODEST_ACCOUNT_VIEW_LAST_UPDATED_COLUMN, last_updated_string, + -1); g_free (last_updated_string); modest_account_mgr_free_account_data (account_mgr, account_data); return;