Bug 1436759 - Release NrIceMediaStreams on sts thread in transport_unittests.cpp. r=bwc
authorMichael Froman <mfroman@mozilla.com>
Wed, 14 Feb 2018 14:24:50 -0600
changeset 403912 6d4e050bc4068b475fd98d5052d14d24e9fa4e30
parent 403911 63e930c8b30829b1f0dd2301b8bfd7fc1948fbc8
child 403913 067ee834b07b32bc0fd3023ef510cbea6dad1aa2
push id99885
push userapavel@mozilla.com
push dateThu, 15 Feb 2018 10:38:09 +0000
treeherdermozilla-inbound@99495614cba7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbwc
bugs1436759
milestone60.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1436759 - Release NrIceMediaStreams on sts thread in transport_unittests.cpp. r=bwc MozReview-Commit-ID: BLasqfQJxw
media/mtransport/test/transport_unittests.cpp
--- a/media/mtransport/test/transport_unittests.cpp
+++ b/media/mtransport/test/transport_unittests.cpp
@@ -476,16 +476,17 @@ class TransportTestPeer : public sigslot
 
 
   void DestroyFlow() {
     if (flow_) {
       loopback_->Disconnect();
       flow_ = nullptr;
     }
     ice_ctx_ = nullptr;
+    streams_.clear();
   }
 
   void DisconnectDestroyFlow() {
     loopback_->Disconnect();
     disconnect_all();  // Disconnect from the signals;
      flow_ = nullptr;
   }