From 613cd8f4cbd4846833d5e7ee11dbb47d1874158e Mon Sep 17 00:00:00 2001 From: Moonchild Date: Wed, 30 Aug 2023 18:59:32 +0200 Subject: [PATCH] [network] Hold a strong ref to mChannel in OpenConn --- netwerk/protocol/websocket/WebSocketChannel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 mChannel; }; void ConnectNext(nsCString &hostName)