From: Anthony Minessale Date: Mon, 18 Jan 2016 21:25:19 +0000 (-0600) Subject: FS-8721 last should only be set on the ones we skip that will not be destroyed X-Git-Tag: v1.6.7~2^2~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ee745afeb6d9511bb2cb54245b955a8010ea0ce;p=thirdparty%2Ffreeswitch.git FS-8721 last should only be set on the ones we skip that will not be destroyed --- diff --git a/src/switch_core_media_bug.c b/src/switch_core_media_bug.c index 0dde1a7457..fc80c13da8 100644 --- a/src/switch_core_media_bug.c +++ b/src/switch_core_media_bug.c @@ -1124,7 +1124,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_remove_all_function(switch } else { session->bugs = bp->next; } - last = bp; } switch_thread_rwlock_unlock(session->bug_rwlock); status = SWITCH_STATUS_SUCCESS;