summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-08-30 18:59:32 +0200
committerMoonchild <moonchild@palemoon.org>2023-08-30 18:59:32 +0200
commitf20e3f4dd16285c9b484a8abb144f2a51d93ac07 (patch)
treeb8afbf247a0d771736044e8f99b372757a269a06
parentca691c8d2dbd00957722028b5bc8322721879d86 (diff)
downloaduxp-f20e3f4dd16285c9b484a8abb144f2a51d93ac07.tar.gz
[network] Hold a strong ref to mChannel in OpenConn
-rw-r--r--netwerk/protocol/websocket/WebSocketChannel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/netwerk/protocol/websocket/WebSocketChannel.cpp b/netwerk/protocol/websocket/WebSocketChannel.cpp
index 4b087a8bf2..9fca09a087 100644
--- a/netwerk/protocol/websocket/WebSocketChannel.cpp
+++ b/netwerk/protocol/websocket/WebSocketChannel.cpp
@@ -520,7 +520,7 @@ private:
~nsOpenConn() { MOZ_COUNT_DTOR(nsOpenConn); }
nsCString mAddress;
- WebSocketChannel *mChannel;
+ RefPtr<WebSocketChannel> mChannel;
};
void ConnectNext(nsCString &hostName)