}
camel_shutdown ();
-
+
G_OBJECT_CLASS(parent_class)->finalize (obj);
}
account = modest_tny_account_store_get_server_account (self,
transport_account_name,
TNY_ACCOUNT_TYPE_TRANSPORT);
- if (account) {
+
+ /* the call will free the reference */
+ if (account)
remove_transport_account (self, TNY_TRANSPORT_ACCOUNT (account));
- g_object_unref (account);
- }
}
iter = g_slist_next (iter);
}