[Webkit-unassigned] [Bug 65806] New: Potential Leaks - RetainPtr<> over retaining Create'd objects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 5 19:35:19 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=65806

           Summary: Potential Leaks - RetainPtr<> over retaining Create'd
                    objects
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: joepeck at webkit.org


shell> cd Source/
shell> ack 'Retain.*?=.*?Create'

    WebCore/platform/network/mac/NetworkStateNotifierMac.cpp
    108:    RetainPtr<CFRunLoopSourceRef> configSource = SCDynamicStoreCreateRunLoopSource(0, m_store.get(), 0);

    WebCore/plugins/mac/PluginPackageMac.cpp
    123:        WTF::RetainPtr<CFStringRef> str = CFStringCreateWithPascalString(0, p, encoding);
    143:        WTF::RetainPtr<CFStringRef> path = CFStringCreateWithFormat(0, 0, CFSTR("%@/Library/Preferences/%@"), homeDir.get(), fileName.get());

    WebKit/mac/WebView/WebView.mm
    4215:    RetainPtr<CFMutableSetRef> visitedViews = CFSetCreateMutable(0, 0, 0);

The first looks harmless, the plugin ones look like it could be bad in encountered (in a loop),
and the WebView one looks straightforward if ever encountered.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list