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:
parent
42a2dea5e0
commit
ba29095d10
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue