We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f68d517 + 1538fda commit 0da7d4dCopy full SHA for 0da7d4d
ginetflow.c
@@ -740,8 +740,7 @@ static void g_inet_flow_finalize(GObject * object)
740
GInetFlow *flow = G_INET_FLOW(object);
741
int index = find_expiry_index(flow->lifetime);
742
g_queue_unlink(flow->table->expire_queue[index], &flow->list);
743
- /* This might not be safe - we'll get called as the hash table is destroyed */
744
- g_hash_table_remove(flow->table->table, flow);
+ g_hash_table_steal(flow->table->table, flow);
745
G_OBJECT_CLASS(g_inet_flow_parent_class)->finalize(object);
746
}
747
0 commit comments