summaryrefslogtreecommitdiffstats
path: root/dom/media/webrtc/jsapi/RTCDtlsTransport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/webrtc/jsapi/RTCDtlsTransport.cpp')
-rw-r--r--dom/media/webrtc/jsapi/RTCDtlsTransport.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/dom/media/webrtc/jsapi/RTCDtlsTransport.cpp b/dom/media/webrtc/jsapi/RTCDtlsTransport.cpp
index 243f06d2f1..83e0aeee82 100644
--- a/dom/media/webrtc/jsapi/RTCDtlsTransport.cpp
+++ b/dom/media/webrtc/jsapi/RTCDtlsTransport.cpp
@@ -9,7 +9,8 @@
namespace mozilla::dom {
-NS_IMPL_CYCLE_COLLECTION_INHERITED(RTCDtlsTransport, DOMEventTargetHelper)
+NS_IMPL_CYCLE_COLLECTION_INHERITED(RTCDtlsTransport, DOMEventTargetHelper,
+ mIceTransport)
NS_IMPL_ADDREF_INHERITED(RTCDtlsTransport, DOMEventTargetHelper)
NS_IMPL_RELEASE_INHERITED(RTCDtlsTransport, DOMEventTargetHelper)
@@ -19,7 +20,9 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(RTCDtlsTransport)
NS_INTERFACE_MAP_END_INHERITING(DOMEventTargetHelper)
RTCDtlsTransport::RTCDtlsTransport(nsPIDOMWindowInner* aWindow)
- : DOMEventTargetHelper(aWindow), mState(RTCDtlsTransportState::New) {}
+ : DOMEventTargetHelper(aWindow),
+ mState(RTCDtlsTransportState::New),
+ mIceTransport(new RTCIceTransport(aWindow)) {}
JSObject* RTCDtlsTransport::WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {