Bug 1072316 - Proxy release of mLoadInfo in WebSocketChannel dtor (r=jduell)
authorChristoph Kerschbaumer <mozilla@christophkerschbaumer.com>
Thu, 25 Sep 2014 07:23:27 -0700
changeset 207676 01f3b20fd636b6c83b5cb026c137ab0fa8d532d7
parent 207675 d54b5daa5361789687d39b51f8c5dad4d1693403
child 207677 a0ee05ed95f8b2b36319c95ec79682aa240f1e73
push id27564
push userryanvm@gmail.com
push dateMon, 29 Sep 2014 18:57:04 +0000
treeherdermozilla-central@ce9a0b34225e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjduell
bugs1072316
milestone35.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 1072316 - Proxy release of mLoadInfo in WebSocketChannel dtor (r=jduell)
netwerk/protocol/websocket/WebSocketChannel.cpp
--- a/netwerk/protocol/websocket/WebSocketChannel.cpp
+++ b/netwerk/protocol/websocket/WebSocketChannel.cpp
@@ -1110,16 +1110,22 @@ WebSocketChannel::~WebSocketChannel()
     NS_ProxyRelease(mainThread, forgettableContext, false);
   }
 
   if (mLoadGroup) {
     nsILoadGroup *forgettableGroup;
     mLoadGroup.forget(&forgettableGroup);
     NS_ProxyRelease(mainThread, forgettableGroup, false);
   }
+
+  if (mLoadInfo) {
+    nsILoadInfo *forgetableLoadInfo;
+    mLoadInfo.forget(&forgetableLoadInfo);
+    NS_ProxyRelease(mainThread, forgetableLoadInfo, false);
+  }
 }
 
 NS_IMETHODIMP
 WebSocketChannel::Observe(nsISupports *subject,
                           const char *topic,
                           const char16_t *data)
 {
   LOG(("WebSocketChannel::Observe [topic=\"%s\"]\n", topic));