From 9f4c4b181fdf7ab9fccf3c38e821170101c14f4d Mon Sep 17 00:00:00 2001
From: Alexandre Savard <alexandresavard@alexandresavard-desktop.(none)>
Date: Mon, 11 Jan 2010 09:50:43 -0500
Subject: [PATCH] [#1722] Forgot Sdes case for Stop rtp session method

---
 sflphone-common/src/audio/audiortp/AudioRtpFactory.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sflphone-common/src/audio/audiortp/AudioRtpFactory.cpp b/sflphone-common/src/audio/audiortp/AudioRtpFactory.cpp
index 17e9242152..a081f88dce 100644
--- a/sflphone-common/src/audio/audiortp/AudioRtpFactory.cpp
+++ b/sflphone-common/src/audio/audiortp/AudioRtpFactory.cpp
@@ -171,6 +171,8 @@ void AudioRtpFactory::stop (void)
         switch (_rtpSessionType) {
 
             case Sdes:
+	        delete static_cast<AudioSrtpSession *> (_rtpSession);
+		break;
 
             case Symmetric:
                 delete static_cast<AudioSymmetricRtpSession *> (_rtpSession);
-- 
GitLab