summaryrefslogtreecommitdiffstats
path: root/media/webrtc/signaling/src/peerconnection
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-07-01 12:57:51 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-07-01 12:57:51 +0200
commitca3a3b63eed0de7d86291dab8479dcc3e4fc4b8f (patch)
tree3265beacca87ccdcf598c270456b06664b8d6eaa /media/webrtc/signaling/src/peerconnection
parent8d29394b4bc27b3575141685647df1509d687441 (diff)
downloadUXP-ca3a3b63eed0de7d86291dab8479dcc3e4fc4b8f.tar
UXP-ca3a3b63eed0de7d86291dab8479dcc3e4fc4b8f.tar.gz
UXP-ca3a3b63eed0de7d86291dab8479dcc3e4fc4b8f.tar.lz
UXP-ca3a3b63eed0de7d86291dab8479dcc3e4fc4b8f.tar.xz
UXP-ca3a3b63eed0de7d86291dab8479dcc3e4fc4b8f.zip
WebRTC: Add DeleteStreams to media conduits.
Diffstat (limited to 'media/webrtc/signaling/src/peerconnection')
-rw-r--r--media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp b/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp
index 4f42b0bb7..6477a7d78 100644
--- a/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp
+++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp
@@ -1,4 +1,4 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
+:SelfDestruct_m/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
@@ -1036,6 +1036,11 @@ PeerConnectionMedia::SelfDestruct_m()
mLocalSourceStreams.Clear();
mRemoteSourceStreams.Clear();
+ // Clean up our send and receive streams
+ for (auto i = mConduits.begin(); i != mConduits.end(); ++i) {
+ i->second.second->DeleteStreams();
+ }
+
mMainThread = nullptr;
// Final self-destruct.