RTC: fix memory leak bug

pull/1988/head
chenhaibo 4 years ago committed by winlin
parent 42a2dea5e0
commit ba29095d10

@ -47,6 +47,10 @@ SrsRtpRingBuffer::SrsRtpRingBuffer(int capacity)
SrsRtpRingBuffer::~SrsRtpRingBuffer()
{
for (int i = 0; i < capacity_; ++i) {
SrsRtpPacket2* pkt = queue_[i];
srs_freep(pkt);
}
srs_freepa(queue_);
}

Loading…
Cancel
Save