MODEST_ACCOUNT_MGR_GET_PRIVATE (obj);
if (priv->notification_id_accounts) {
- /* TODO: forget dirs */
-
g_hash_table_destroy (priv->notification_id_accounts);
+ priv->notification_id_accounts = NULL;
}
if (priv->modest_conf) {
priv->account_key_hash = NULL;
}
+ if (priv->busy_accounts) {
+ g_slist_foreach (priv->busy_accounts, (GFunc) g_free, NULL);
+ g_slist_free (priv->busy_accounts);
+ priv->busy_accounts = NULL;
+ }
+
G_OBJECT_CLASS(parent_class)->finalize (obj);
}
g_printerr ("modest: error getting list '%s': %s\n", keyname,
err->message);
g_error_free (err);
- retval = FALSE;
+ retval = NULL;
}
return retval;
}
proto_name = modest_account_mgr_get_string (self, server_account_name,
MODEST_ACCOUNT_PROTO, TRUE);
if (!proto_name) {
- g_free (proto_name);
g_return_if_reached ();
+ return;
}
proto = modest_protocol_get_type_id (modest_protocol_registry_get_protocol_by_name (protocol_registry,
MODEST_PROTOCOL_REGISTRY_TRANSPORT_STORE_PROTOCOLS,
g_printerr ("modest: failed to get '%s': %s\n",
MODEST_CONF_DEFAULT_ACCOUNT, err->message);
g_error_free (err);
- g_free (account);
return NULL;
}