* Added some missing signal disconnections
[modest] / src / modest-account-mgr.c
index 5826c61..624bff0 100644 (file)
@@ -237,7 +237,8 @@ modest_account_mgr_init (ModestAccountMgr * obj)
 
        priv->modest_conf = NULL;
        priv->busy_accounts = NULL;
-/*     priv->timeout = g_timeout_add (1000 /\* milliseconds *\/, on_timeout_notify_changes, obj); */
+
+       priv->notification_id_accounts = g_hash_table_new_full (g_int_hash, g_int_equal, g_free, g_free);
 }
 
 static void
@@ -246,6 +247,12 @@ modest_account_mgr_finalize (GObject * obj)
        ModestAccountMgrPrivate *priv = 
                MODEST_ACCOUNT_MGR_GET_PRIVATE (obj);
 
+       if (priv->notification_id_accounts) {
+               /* TODO: forget dirs */
+
+               g_hash_table_destroy (priv->notification_id_accounts);
+       }
+
        if (priv->key_changed_handler_uid) {
                g_signal_handler_disconnect (priv->modest_conf, 
                                             priv->key_changed_handler_uid);
@@ -260,10 +267,10 @@ modest_account_mgr_finalize (GObject * obj)
 /*     if (priv->timeout) */
 /*             g_source_remove (priv->timeout); */
                
-       if (priv->changed_conf_keys) {
-               g_slist_foreach (priv->changed_conf_keys, (GFunc) g_free, NULL);
-               g_slist_free (priv->changed_conf_keys);
-       }
+/*     if (priv->changed_conf_keys) { */
+/*             g_slist_foreach (priv->changed_conf_keys, (GFunc) g_free, NULL); */
+/*             g_slist_free (priv->changed_conf_keys); */
+/*     } */
 
        G_OBJECT_CLASS(parent_class)->finalize (obj);
 }