Browse Source

MT#55283 add missing lock destruction

Change-Id: I93d8dbb71db0ab667b06df88991733e8af769f64
pull/1998/head
Richard Fuchs 4 months ago
parent
commit
f9ae163d23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      daemon/call.c

+ 3
- 0
daemon/call.c View File

@ -3994,6 +3994,7 @@ static void __call_cleanup(call_t *c) {
ps->selected_sfd = NULL; ps->selected_sfd = NULL;
t_queue_clear(&ps->sfds); t_queue_clear(&ps->sfds);
crypto_cleanup(&ps->crypto); crypto_cleanup(&ps->crypto);
mutex_destroy(&ps->lock);
t_queue_clear_full(&ps->rtp_sinks, free_sink_handler); t_queue_clear_full(&ps->rtp_sinks, free_sink_handler);
t_queue_clear_full(&ps->rtcp_sinks, free_sink_handler); t_queue_clear_full(&ps->rtcp_sinks, free_sink_handler);
@ -4006,6 +4007,7 @@ static void __call_cleanup(call_t *c) {
media_stop(md); media_stop(md);
t38_gateway_put(&md->t38_gateway); t38_gateway_put(&md->t38_gateway);
audio_player_free(md); audio_player_free(md);
mutex_destroy(&md->dtmf_lock);
} }
for (__auto_type l = c->monologues.head; l; l = l->next) { for (__auto_type l = c->monologues.head; l; l = l->next) {
@ -4025,6 +4027,7 @@ static void __call_cleanup(call_t *c) {
} }
recording_finish(c, false); recording_finish(c, false);
rwlock_destroy(&c->master_lock);
} }
// rtpe_callhash_lock must be held // rtpe_callhash_lock must be held


Loading…
Cancel
Save