gboolean
modest_runtime_uninit (void)
{
- if (!_singletons) {
- g_printerr ("modest: modest_runtime is not initialized\n");
- return FALSE;
+ if (_singletons) {
+ g_object_unref (G_OBJECT(_singletons));
+ _singletons = NULL;
}
+ if (G_IS_OBJECT(_singletons))
+ g_warning ("BUG: _singletons is still alive\n");
- g_object_unref (G_OBJECT(_singletons));
- _singletons = NULL;
-
return TRUE;
}
gchar *default_account;
gboolean retval = TRUE;
- all_accounts = modest_account_mgr_account_names (acc_mgr, NULL);
+ all_accounts = modest_account_mgr_account_names (acc_mgr);
if (all_accounts) { /* if there are any accounts, there should be a default one */
default_account =
modest_account_mgr_get_default_account (acc_mgr);