[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


           Summary: Potential Leaks - RetainPtr<> over retaining Create'd
           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'

    108:    RetainPtr<CFRunLoopSourceRef> configSource = SCDynamicStoreCreateRunLoopSource(0, m_store.get(), 0);

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

    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