Skip to content

Commit

Permalink
Merge pull request #37 from isaac129/deliver
Browse files Browse the repository at this point in the history
Prevent ref count assertion error
  • Loading branch information
carlatat authored Mar 18, 2018
2 parents f68d517 + 1538fda commit 0da7d4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ginetflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -740,8 +740,7 @@ static void g_inet_flow_finalize(GObject * object)
GInetFlow *flow = G_INET_FLOW(object);
int index = find_expiry_index(flow->lifetime);
g_queue_unlink(flow->table->expire_queue[index], &flow->list);
/* This might not be safe - we'll get called as the hash table is destroyed */
g_hash_table_remove(flow->table->table, flow);
g_hash_table_steal(flow->table->table, flow);
G_OBJECT_CLASS(g_inet_flow_parent_class)->finalize(object);
}

Expand Down

0 comments on commit 0da7d4d

Please sign in to comment.