Skip to content
Snippets Groups Projects
Commit 909bcb1b authored by Rafaël Carré's avatar Rafaël Carré
Browse files

Fix memleak

parent fab77dc2
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,7 @@ void AudioRtpRecordHandler::setRtpMedia (AudioCodec* audioCodec)
{
_audioRtpRecord.audioCodecMutex.enter();
delete _audioRtpRecord._audioCodec;
// Set varios codec info to reduce indirection
_audioRtpRecord._audioCodec = audioCodec;
_audioRtpRecord._codecPayloadType = audioCodec->getPayloadType();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment