Fix over-retain in SharedBufferCF's createCFData().
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Apr 2014 22:56:47 +0000 (22:56 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Apr 2014 22:56:47 +0000 (22:56 +0000)
commit59f1ee3d994169a7d3d490221f63cbb1c82835af
treef0d97b3c2988d1e59243bf902a9b36b239bcf85e
parentfa85b0e68084eacb3393858f1fc67e814789194b
Fix over-retain in SharedBufferCF's createCFData().
<https://webkit.org/b/131139>

Constructing the return type (RetainPtr<CFDataRef>) will also retain
the pointee, so this would end up leaking.

Reviewed by Anders Carlsson.

* platform/cf/SharedBufferCF.cpp:
(WebCore::SharedBuffer::createCFData):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@166751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/cf/SharedBufferCF.cpp