Commit 427c63a4 authored by jeffm@apple.com's avatar jeffm@apple.com

2011-03-26 Jeff Miller <jeffm@apple.com>

        Reviewed by Sam Weinig.

        WKErrorCopyCFError() doesn&apos;t actually return a copy of the CFErrorRef
        https://bugs.webkit.org/show_bug.cgi?id=57172

        * Shared/API/c/cf/WKErrorCF.cpp:
        (WKErrorCopyCFError): Use RetainPtr<> and leakRef() to return a real copy.


git-svn-id: svn://svn.chromium.org/blink/trunk@82058 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 11b363e6
2011-03-26 Jeff Miller <jeffm@apple.com>
Reviewed by Sam Weinig.
WKErrorCopyCFError() doesn&apos;t actually return a copy of the CFErrorRef
https://bugs.webkit.org/show_bug.cgi?id=57172
* Shared/API/c/cf/WKErrorCF.cpp:
(WKErrorCopyCFError): Use RetainPtr<> and leakRef() to return a real copy.
2011-03-26 Maciej Stachowiak <mjs@apple.com>
Revert inadvertantly commited changes.
......
......@@ -40,5 +40,6 @@ WKErrorRef WKErrorCreateWithCFError(CFErrorRef cfError)
CFErrorRef WKErrorCopyCFError(CFAllocatorRef alloc, WKErrorRef error)
{
return toImpl(error)->platformError().cfError();
RetainPtr<CFErrorRef> cfError = toImpl(error)->platformError().cfError();
return cfError.leakRef();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment