mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-25 03:10:39 +00:00
FS-10388: [core] fix crash on shutdown when using multiple meida bugs
This commit is contained in:
parent
38ff0f79e9
commit
379084eda0
@ -1270,7 +1270,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_remove_all_function(switch
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (closed) {
|
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);
|
switch_core_media_bug_destroy(&bp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user