* as soon as it is instantiated: */
send_queue = (gpointer)modest_tny_send_queue_new (TNY_CAMEL_TRANSPORT_ACCOUNT(account));
- g_hash_table_insert (send_queue_cache, account, send_queue);
- g_object_ref (send_queue);
+ g_hash_table_insert (send_queue_cache,
+ g_object_ref (account),
+ g_object_ref (send_queue));
}
return MODEST_TNY_SEND_QUEUE(send_queue);
G_OBJECT_CLASS(parent_class)->finalize (obj);
}
-gboolean volume_path_is_mounted (const gchar* path)
+gboolean
+volume_path_is_mounted (const gchar* path)
{
g_return_val_if_fail (path, FALSE);
/* Add account to the list */
tny_list_append (priv->transport_accounts, G_OBJECT (transport_account));
+ g_assert (TNY_IS_ACCOUNT (transport_account));
/* Add connection-specific transport accounts */
add_connection_specific_transport_accounts (self);
(gpointer)self);
tny_list_append (priv->transport_accounts, G_OBJECT (tny_account));
+ g_object_unref (tny_account);
} else
g_printerr ("modest: failed to create smtp-specific account for %s\n",
transport_account_name);