Summary: | [Cocoa] fix CF leaks found by code inspection | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Darin Adler <darin> | ||||
Component: | WebKit Misc. | Assignee: | Darin Adler <darin> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | commit-queue, eric.carlson, glenn, jer.noble, mmaxfield, philipj, sergio | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Darin Adler
2014-04-23 21:11:31 PDT
Created attachment 230044 [details]
Patch
Comment on attachment 230044 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=230044&action=review r=me. Nice finds! > Source/WebCore/plugins/mac/PluginPackageMac.cpp:138 > + RetainPtr<CFStringRef> homeDir = adoptCF(homeDirectoryPath().createCFString()); We don't need adoptCF() here; createCFString() returns a RetainPtr<CFStringRef>. > Source/WebCore/plugins/mac/PluginPackageMac.cpp:255 > + RetainPtr<CFStringRef> path = adoptCF(m_path.createCFString()); Ditto. Committed r167746: <http://trac.webkit.org/changeset/167746> Comment on attachment 230044 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=230044&action=review >> Source/WebCore/plugins/mac/PluginPackageMac.cpp:138 >> + RetainPtr<CFStringRef> homeDir = adoptCF(homeDirectoryPath().createCFString()); > > We don't need adoptCF() here; createCFString() returns a RetainPtr<CFStringRef>. Not even sure how this compiles. *** Bug 132108 has been marked as a duplicate of this bug. *** |