Leak of WebCore::LibWebRTCCertificateGenerator::RTCCertificateGeneratorCallback ...
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Jan 2019 00:22:22 +0000 (00:22 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 Jan 2019 00:22:22 +0000 (00:22 +0000)
commitec645293ed918e9c73121ec2221615f15ebbd3e3
treeba87d5412c4c50ef3b88679c0172a1955a125d91
parent65f8853f6e3ff6a91b6bff21fd60d513072fc77c
Leak of WebCore::LibWebRTCCertificateGenerator::RTCCertificateGeneratorCallback (48 bytes) in com.apple.WebKit.WebContent running WebKit layout tests
<https://webkit.org/b/193122>
<rdar://problem/47022987>

Reviewed by Youenn Fablet.

* Modules/mediastream/libwebrtc/LibWebRTCCertificateGenerator.cpp:
(WebCore::LibWebRTCCertificateGenerator::RTCCertificateGeneratorCallback::AddRef const):
(WebCore::LibWebRTCCertificateGenerator::RTCCertificateGeneratorCallback::Release const):
- Remove `final` keyword so that
  `new rtc::RefCountedObject<RTCCertificateGeneratorCallback>()`
  can be called.
(WebCore::LibWebRTCCertificateGenerator::generateCertificate):
- To fix the leak call
  `new rtc::RefCountedObject<RTCCertificateGeneratorCallback>()`
  to create the object.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239602 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCCertificateGenerator.cpp