mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
FS-10388: [core] fix crash on shutdown when using multiple meida bugs
This commit is contained in:
parent
5d4ee9a851
commit
acc9821ef6
@ -1253,7 +1253,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_remove_all_function(switch
|
||||
}
|
||||
|
||||
if (closed) {
|
||||
for (bp = session->bugs; bp; bp = bp->next) {
|
||||
for (bp = session->bugs; bp; bp = next) {
|
||||
next = bp->next;
|
||||
switch_core_media_bug_destroy(&bp);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user