From bc9f170098a914b8101e17f2b84235921b46ab95 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Fri, 20 Mar 2009 09:36:07 +0000 Subject: [PATCH] Fixes RefNULL 11/14 pmo-trunk-r8237 --- src/modest-tny-account-store.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 9c34512..d96e8e0 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -466,7 +466,7 @@ on_account_changed (ModestAccountMgr *acc_mgr, account_list = (account_type == TNY_ACCOUNT_TYPE_STORE ? priv->store_accounts : priv->transport_accounts); - + iter = tny_list_create_iterator (account_list); while (!tny_iterator_is_done (iter) && !found) { TnyAccount *tny_account; @@ -481,9 +481,7 @@ on_account_changed (ModestAccountMgr *acc_mgr, } tny_iterator_next (iter); } - - if (iter) - g_object_unref (iter); + g_object_unref (iter); } static void -- 1.7.9.5