Skip to content

Commit 0da7d4d

Browse files
authored
Merge pull request #37 from isaac129/deliver
Prevent ref count assertion error
2 parents f68d517 + 1538fda commit 0da7d4d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ginetflow.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,7 @@ static void g_inet_flow_finalize(GObject * object)
740740
GInetFlow *flow = G_INET_FLOW(object);
741741
int index = find_expiry_index(flow->lifetime);
742742
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);
743+
g_hash_table_steal(flow->table->table, flow);
745744
G_OBJECT_CLASS(g_inet_flow_parent_class)->finalize(object);
746745
}
747746

0 commit comments

Comments
 (0)