diff --git a/netwerk/protocol/websocket/WebSocketChannel.cpp b/netwerk/protocol/websocket/WebSocketChannel.cpp index b243736e1f9..1ab05e6aea3 100644 --- a/netwerk/protocol/websocket/WebSocketChannel.cpp +++ b/netwerk/protocol/websocket/WebSocketChannel.cpp @@ -568,6 +568,12 @@ WebSocketChannel::~WebSocketChannel() mContext.forget(&forgettableContext); NS_ProxyRelease(mainThread, forgettableContext, PR_FALSE); } + + if (mLoadGroup) { + nsILoadGroup *forgettableGroup; + mLoadGroup.forget(&forgettableGroup); + NS_ProxyRelease(mainThread, forgettableGroup, PR_FALSE); + } } void diff --git a/netwerk/protocol/websocket/WebSocketChannel.h b/netwerk/protocol/websocket/WebSocketChannel.h index f0ccd8bf77f..de94a9e8332 100644 --- a/netwerk/protocol/websocket/WebSocketChannel.h +++ b/netwerk/protocol/websocket/WebSocketChannel.h @@ -209,7 +209,6 @@ private: nsCOMPtr mSocketThread; nsCOMPtr mChannel; nsCOMPtr mHttpChannel; - nsCOMPtr mLoadGroup; nsCOMPtr mDNSRequest; nsCOMPtr mRedirectCallback; nsCOMPtr mRandomGenerator;