diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/ephy-node.c | 10 |
2 files changed, 12 insertions, 5 deletions
@@ -1,5 +1,12 @@ 2003-05-25 Marco Pesenti Gritti <marco@it.gnome.org> + * lib/ephy-node.c: (ephy_node_dispose): + + Unlink the node from the childs only after the remove + from parent signal has been emitted. + +2003-05-25 Marco Pesenti Gritti <marco@it.gnome.org> + * configure.in: * embed/ephy-favicon-cache.c: (ephy_favicon_cache_save): * embed/ephy-history.c: (ephy_history_save), (hosts_removed_cb), diff --git a/lib/ephy-node.c b/lib/ephy-node.c index 35c7f87d6..aaea35ef2 100644 --- a/lib/ephy-node.c +++ b/lib/ephy-node.c @@ -283,6 +283,11 @@ ephy_node_dispose (EphyNode *node) lock_gdk (); + /* remove from DAG */ + g_hash_table_foreach (node->parents, + (GHFunc) remove_child, + node); + for (i = 0; i < node->children->len; i++) { EphyNode *child; @@ -295,11 +300,6 @@ ephy_node_dispose (EphyNode *node) g_static_rw_lock_writer_unlock (child->lock); } - /* remove from DAG */ - g_hash_table_foreach (node->parents, - (GHFunc) remove_child, - node); - g_static_rw_lock_writer_unlock (node->lock); ephy_node_emit_signal (node, EPHY_NODE_DESTROYED); |