commit | 67ba29ce84c464270e8f4ccca6c22d37882a90f4 | [log] [tgz] |
---|---|---|
author | sdefresne <sdefresne@chromium.org> | Wed Sep 21 06:51:33 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Sep 21 06:51:33 2016 -0700 |
tree | c80406da1a6bd296855d8164cfb98537c492c35a | |
parent | 2695eaa41fbd208dcee9e134e180c6609856f0ac [diff] |
Fix memory leaks reported by clang static analyzer. The CFURLCopyFileSystemPath & CFURLCopyFileSystemPath methods respect the "Create Rule" [1] regarding the ownership of the returned reference. This means that the objects need to be deallocated explicitly by calling CFRelease. [1]: https://developer.apple.com/library/content/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029 BUG=648210 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2360573002 Review-Url: https://codereview.chromium.org/2360573002