]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8721 last should only be set on the ones we skip that will not be destroyed
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 18 Jan 2016 21:25:19 +0000 (15:25 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 18 Jan 2016 21:25:19 +0000 (15:25 -0600)
src/switch_core_media_bug.c

index 0dde1a745717b6e9e5405ec27a47c49605450e17..fc80c13da8708af783dfcb5516ffc70c945c2be3 100644 (file)
@@ -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;