X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-tny-account.c;h=94e18a5f8daf73647828ca0c87556106408f7cf7;hb=2ea9ef8016d9fe8789eec7d20887fd7623d093d1;hp=cd653c61a922bab0e60caa12fe4774d5235720a0;hpb=98a86207094a62109b18529f4b6199344e9b2cdc;p=modest diff --git a/src/modest-tny-account.c b/src/modest-tny-account.c index cd653c6..94e18a5 100644 --- a/src/modest-tny-account.c +++ b/src/modest-tny-account.c @@ -81,6 +81,7 @@ modest_tny_account_get_special_folder (TnyAccount *account, } g_object_unref (G_OBJECT (folders)); g_object_unref (G_OBJECT (iter)); + g_object_unref (G_OBJECT (local_account)); return special_folder; } @@ -221,7 +222,7 @@ modest_tny_account_new_from_account (ModestAccountMgr *account_mgr, const gchar tny_account_set_name (tny_account, account_data->display_name); g_object_set_data_full (G_OBJECT(tny_account), "modest_account", - (gpointer*)account_name, g_free); + (gpointer*) g_strdup (account_name), g_free); modest_account_mgr_free_account_data (account_mgr, account_data); return tny_account; @@ -247,6 +248,8 @@ modest_tny_account_new_for_local_folders (ModestAccountMgr *account_mgr, TnySess maildir = modest_local_folder_info_get_maildir_path (); url = camel_url_new ("maildir:", NULL); camel_url_set_path (url, maildir); + /* Needed by tinymail's DBC assertions */ + 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);