SharedBuffer::createCFData should return RetainPtr<CFDataRef>
Created attachment 211436 [details] Patch
Comment on attachment 211436 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=211436&action=review > Source/WebCore/platform/mac/SharedBufferMac.mm:109 > + return adoptCF((CFDataRef)adoptNS([[WebCoreSharedBufferData alloc] initWithSharedBuffer:this]).leakRef()); We’ve got to find a better idiom for toll free bridging with RetainPtr than this. It destroys the rule of “look for leakRef” to find bugs.
Committed r155629: <http://trac.webkit.org/changeset/155629>