FEC: Fix to valgrind warning.

Review URL: http://webrtc-codereview.appspot.com/292009

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1042 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
marpan@webrtc.org
2011-11-28 22:10:05 +00:00
parent 400ad6928e
commit 9d8bec6f76
2 changed files with 3 additions and 3 deletions

View File

@ -285,7 +285,7 @@ ForwardErrorCorrection::GenerateFEC(const ListWrapper& mediaPacketList,
WEBRTC_TRACE(kTraceError, kTraceRtpRtcp, _id,
"Packet mask has row of zeros %d %d %d ",
numMediaPackets, numImportantPackets, numFecPackets);
delete packetMask;
delete [] packetMask;
return -1;
}
@ -343,7 +343,7 @@ ForwardErrorCorrection::GenerateFEC(const ListWrapper& mediaPacketList,
memcpy(&_generatedFecPackets[i].data[12], &packetMask[i * numMaskBytes],
numMaskBytes);
}
delete packetMask;
delete [] packetMask;
return 0;
}

View File

@ -493,7 +493,7 @@ int main()
} //loop over numImpPackets
} //loop over FecPackets
} //loop over numMediaPackets
delete packetMask;
delete [] packetMask;
} // loop over loss rates
// Have DecodeFEC free allocated memory.