MockLibWebRTCPeerConnection is leaking some session description
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Mar 2019 21:49:36 +0000 (21:49 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Mar 2019 21:49:36 +0000 (21:49 +0000)
commitf77aa2796c2500a5758f9d4d67196ef19b2c0fe2
tree7523fe8e9ed0c932b7b101a95d9474801c768204
parent48dc57164f2228db596571486c288ac27db8e7b8
MockLibWebRTCPeerConnection is leaking some session description
https://bugs.webkit.org/show_bug.cgi?id=195315
<rdar://problem/47840038>

Reviewed by David Kilzer.

Make sure to release raw pointers given from WebCore to mock libwebrtc layer.
Covered by existing tests when run in leaks mode.

* testing/MockLibWebRTCPeerConnection.cpp:
(WebCore::MockLibWebRTCPeerConnection::SetLocalDescription):
(WebCore::MockLibWebRTCPeerConnection::SetRemoteDescription):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/testing/MockLibWebRTCPeerConnection.cpp