Commit efc381d6 authored by Tristan Matthews's avatar Tristan Matthews

* #9641: fixed another memory leak in audio_srtp_session

parent 61f5b133
......@@ -116,8 +116,8 @@ namespace {
AudioSrtpSession::AudioSrtpSession(SIPCall &call) :
AudioSymmetricRtpSession(call),
remoteCryptoCtx_(NULL),
localCryptoCtx_(NULL),
remoteCryptoCtx_(0),
localCryptoCtx_(0),
localCryptoSuite_(0),
remoteCryptoSuite_(0),
localMasterKey_(),
......@@ -131,6 +131,12 @@ AudioSrtpSession::AudioSrtpSession(SIPCall &call) :
remoteOfferIsSet_(false)
{}
AudioSrtpSession::~AudioSrtpSession()
{
delete localCryptoCtx_;
delete remoteCryptoCtx_;
}
void AudioSrtpSession::initLocalCryptoInfo()
{
DEBUG("AudioSrtp: Set cryptographic info for this rtp session");
......
......@@ -73,6 +73,7 @@ class AudioSrtpSession : public AudioSymmetricRtpSession {
* Constructor for this rtp session
*/
AudioSrtpSession(SIPCall &call);
~AudioSrtpSession();
/**
* Used to get sdp crypto header to be included in sdp session. This
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment