diff options
Diffstat (limited to 'lib/ephy-node.c')
-rw-r--r-- | lib/ephy-node.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); |