From fc96f72a62af755e7832031864cb935270706023 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Fri, 16 Mar 2007 13:41:44 +0000 Subject: [PATCH] * Various fixes pmo-trunk-r909 --- src/modest-tny-account-store.c | 9 +++------ src/modest-tny-account.c | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index 7a679cf..2688360 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -392,11 +392,8 @@ modest_tny_account_store_new (ModestAccountMgr *account_mgr, TnyDevice *device) obj = G_OBJECT(g_object_new(MODEST_TYPE_TNY_ACCOUNT_STORE, NULL)); priv = MODEST_TNY_ACCOUNT_STORE_GET_PRIVATE(obj); - priv->account_mgr = account_mgr; - g_object_ref (G_OBJECT(priv->account_mgr)); - - priv->device = device; - g_object_ref (priv->device); + priv->account_mgr = g_object_ref (G_OBJECT(account_mgr)); + priv->device = g_object_ref (device); priv->session = tny_session_camel_new (TNY_ACCOUNT_STORE(obj)); @@ -684,7 +681,7 @@ modest_tny_account_store_set_get_pass_func (ModestTnyAccountStore *self, TnySessionCamel* tny_account_store_get_session (TnyAccountStore *self) { - g_return_val_if_fail (self, NULL); + g_return_val_if_fail (self, NULL); return MODEST_TNY_ACCOUNT_STORE_GET_PRIVATE (self)->session; } diff --git a/src/modest-tny-account.c b/src/modest-tny-account.c index e634120..94e18a5 100644 --- a/src/modest-tny-account.c +++ b/src/modest-tny-account.c @@ -249,7 +249,7 @@ modest_tny_account_new_for_local_folders (ModestAccountMgr *account_mgr, TnySess url = camel_url_new ("maildir:", NULL); camel_url_set_path (url, maildir); /* Needed by tinymail's DBC assertions */ - camel_url_set_host (url, "localhost"); + camel_url_set_host (url, "localhost"); url_string = camel_url_to_string (url, 0); tny_account_set_url_string (TNY_ACCOUNT(tny_account), url_string); -- 1.7.9.5