Bug 1621538 - Remove unnecessary URIs lines released on main thread. r=valentin
authorMahakBansal <mbansal@cs.iitr.ac.in>
Wed, 11 Mar 2020 22:01:57 +0000
changeset 518271 0c97f79721f66b706bcd2ba5f62a2ced9e1390db
parent 518270 aee1b0159e7e17d45484ce5a5eda922f02010dd7
child 518272 b9bf352a94d2d41df26dae4a672daadb5185fdce
push id37206
push useraciure@mozilla.com
push dateThu, 12 Mar 2020 03:57:49 +0000
treeherdermozilla-central@4fd5c458be4c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvalentin
bugs1621538
milestone76.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 1621538 - Remove unnecessary URIs lines released on main thread. r=valentin Differential Revision: https://phabricator.services.mozilla.com/D66441
netwerk/protocol/websocket/WebSocketChannel.cpp
--- a/netwerk/protocol/websocket/WebSocketChannel.cpp
+++ b/netwerk/protocol/websocket/WebSocketChannel.cpp
@@ -1164,20 +1164,16 @@ WebSocketChannel::~WebSocketChannel() {
 
   while ((mCurrentOut = (OutboundMessage*)mOutgoingPingMessages.PopFront()))
     delete mCurrentOut;
   while ((mCurrentOut = (OutboundMessage*)mOutgoingPongMessages.PopFront()))
     delete mCurrentOut;
   while ((mCurrentOut = (OutboundMessage*)mOutgoingMessages.PopFront()))
     delete mCurrentOut;
 
-  NS_ReleaseOnMainThreadSystemGroup("WebSocketChannel::mURI", mURI.forget());
-  NS_ReleaseOnMainThreadSystemGroup("WebSocketChannel::mOriginalURI",
-                                    mOriginalURI.forget());
-
   mListenerMT = nullptr;
 
   NS_ReleaseOnMainThreadSystemGroup("WebSocketChannel::mLoadGroup",
                                     mLoadGroup.forget());
   NS_ReleaseOnMainThreadSystemGroup("WebSocketChannel::mLoadInfo",
                                     mLoadInfo.forget());
   NS_ReleaseOnMainThreadSystemGroup("WebSocketChannel::mService",
                                     mService.forget());