| Index: third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp
|
| diff --git a/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp b/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp
|
| index c6886bc53f2468fc6db5a1d1e0a6e74cb2c255e5..1c63506d55dc2271ff042304b52afe6372f0c1d6 100644
|
| --- a/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp
|
| +++ b/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp
|
| @@ -113,7 +113,7 @@ bool throwExceptionIfSignalingStateClosed(RTCPeerConnection::SignalingState stat
|
| void asyncCallErrorCallback(RTCPeerConnectionErrorCallback* errorCallback, DOMException* exception)
|
| {
|
| DCHECK(errorCallback);
|
| - Microtask::enqueueMicrotask(bind(&RTCPeerConnectionErrorCallback::handleEvent, errorCallback, exception));
|
| + Microtask::enqueueMicrotask(bind(&RTCPeerConnectionErrorCallback::handleEvent, wrapPersistent(errorCallback), wrapPersistent(exception)));
|
| }
|
|
|
| bool callErrorCallbackIfSignalingStateClosed(RTCPeerConnection::SignalingState state, RTCPeerConnectionErrorCallback* errorCallback)
|
| @@ -1179,7 +1179,7 @@ void RTCPeerConnection::changeIceConnectionState(ICEConnectionState iceConnectio
|
| {
|
| if (m_iceConnectionState != ICEConnectionStateClosed) {
|
| scheduleDispatchEvent(Event::create(EventTypeNames::iceconnectionstatechange),
|
| - WTF::bind(&RTCPeerConnection::setIceConnectionState, this, iceConnectionState));
|
| + WTF::bind(&RTCPeerConnection::setIceConnectionState, wrapPersistent(this), iceConnectionState));
|
| }
|
| }
|
|
|
|
|