X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-account-mgr.c;h=09b97ef10f23832ef5327789454fe3fc4bb5b13e;hp=2a8e77ccccb3e8fe1689daad14ff0f07b1be4032;hb=1aec0b25c44cb530ca1ec29a2aad93ced34cd5ec;hpb=ffc08f4bf5ba7e3510ba705b6b357cd0a45b87f5 diff --git a/src/modest-account-mgr.c b/src/modest-account-mgr.c index 2a8e77c..09b97ef 100644 --- a/src/modest-account-mgr.c +++ b/src/modest-account-mgr.c @@ -219,9 +219,8 @@ modest_account_mgr_finalize (GObject * obj) 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) { @@ -243,6 +242,12 @@ modest_account_mgr_finalize (GObject * obj) 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); }