From: Sergio Villar Senin Date: Fri, 20 Mar 2009 09:36:07 +0000 (+0000) Subject: Fixes RefNULL 11/14 X-Git-Tag: git_migration_finished~242 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=bc9f170098a914b8101e17f2b84235921b46ab95 Fixes RefNULL 11/14 pmo-trunk-r8237 --- 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