LibWebRTCSocketClient should not destroy its socket within signalClose callback
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jun 2017 20:43:41 +0000 (20:43 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jun 2017 20:43:41 +0000 (20:43 +0000)
commitef11790d6627e6b77adab44d692c7dffa5da5b96
tree18cac4c34ea1ec46c2121da3e615f4127a197778
parent630d208fbac66e7c7913399740b1e05aeb606337
LibWebRTCSocketClient should not destroy its socket within signalClose callback
https://bugs.webkit.org/show_bug.cgi?id=173739

Patch by Youenn Fablet <youenn@apple.com> on 2017-06-23
Reviewed by Brent Fulgham.

* NetworkProcess/webrtc/LibWebRTCSocketClient.cpp:
(WebKit::LibWebRTCSocketClient::signalClose): Destroy 'this' asynchronously to make the caller of signalClose valid until it is not used.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/NetworkProcess/webrtc/LibWebRTCSocketClient.cpp