1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-15 04:42:04 +00:00

RTC: fix memory leak bug

This commit is contained in:
chenhaibo 2020-09-30 11:16:37 +08:00 committed by winlin
parent 42a2dea5e0
commit ba29095d10

View file

@ -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_);
}