Fixed memleak when two voip blocks present in single rtcp packet.
BUG=chromium:603894 Review URL: https://codereview.webrtc.org/1901593002 Cr-Commit-Position: refs/heads/master@{#12413}
This commit is contained in:
@ -42,14 +42,13 @@ RTCPPacketInformation::RTCPPacketInformation()
|
||||
RTCPPacketInformation::~RTCPPacketInformation()
|
||||
{
|
||||
delete [] applicationData;
|
||||
delete VoIPMetric;
|
||||
}
|
||||
|
||||
void
|
||||
RTCPPacketInformation::AddVoIPMetric(const RTCPVoIPMetric* metric)
|
||||
{
|
||||
VoIPMetric = new RTCPVoIPMetric();
|
||||
memcpy(VoIPMetric, metric, sizeof(RTCPVoIPMetric));
|
||||
VoIPMetric.reset(new RTCPVoIPMetric());
|
||||
memcpy(VoIPMetric.get(), metric, sizeof(RTCPVoIPMetric));
|
||||
}
|
||||
|
||||
void RTCPPacketInformation::AddApplicationData(const uint8_t* data,
|
||||
|
||||
Reference in New Issue
Block a user