TT#147451 add missing cleanup of subs lists

Change-Id: I54d1545d3b302d3d73168c3c64b15af3e327a494
pull/1396/head
Richard Fuchs 4 years ago
parent b9eea8c579
commit 44e53a2767

@ -3328,6 +3328,10 @@ void call_media_free(struct call_media **mdp) {
*mdp = NULL;
}
void call_subscription_free(void *p) {
g_slice_free1(sizeof(struct call_subscription), p);
}
static void __call_free(void *p) {
struct call *c = p;
struct call_monologue *m;
@ -3355,6 +3359,8 @@ static void __call_free(void *p) {
sdp_streams_free(&m->last_in_sdp_streams);
g_hash_table_destroy(m->subscribers_ht);
g_hash_table_destroy(m->subscriptions_ht);
g_queue_clear_full(&m->subscribers, call_subscription_free);
g_queue_clear_full(&m->subscriptions, call_subscription_free);
g_slice_free1(sizeof(*m), m);
}

@ -599,6 +599,8 @@ void __add_subscription(struct call_monologue *ml, struct call_monologue *other,
void free_sink_handler(void *);
void __add_sink_handler(GQueue *, struct packet_stream *);
void call_subscription_free(void *);
struct call *call_get_or_create(const str *callid, bool foreign, bool exclusive);
struct call *call_get_opmode(const str *callid, enum call_opmode opmode);

Loading…
Cancel
Save