]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11957: destroy NACK table on SWITCH_RTP_FLAG_KILL_JB too
authorDragos Oancea <dragos@signalwire.com>
Thu, 25 Jul 2019 16:01:59 +0000 (16:01 +0000)
committerDragos Oancea <dragos@signalwire.com>
Thu, 25 Jul 2019 16:01:59 +0000 (16:01 +0000)
src/switch_rtp.c

index cd65160646ff9fb73bdb3ba23416a8c464a108a0..26a88758698b59850fc04f4fd31507ec4cae79fc 100644 (file)
@@ -6340,6 +6340,11 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
                if (rtp_session->vb) {
                        switch_jb_destroy(&rtp_session->vb);
                }
+
+               if (rtp_session->vbw) {
+                       switch_jb_destroy(&rtp_session->vbw);
+               }
+
        }
 
        if (rtp_session->has_rtp && *bytes) {