Skip to content
Snippets Groups Projects
Commit efc381d6 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #9641: fixed another memory leak in audio_srtp_session

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