[LLVMbugs] [Bug 7633] New: failure to report leak due to presentMoviePlayerViewControllerAnimated

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 12 21:39:53 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7633

           Summary: failure to report leak due to
                    presentMoviePlayerViewControllerAnimated
           Product: clang
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: matt at tidbits.com
                CC: llvmbugs at cs.uiuc.edu


The following is a leak (Cocoa). The static analyzer fails to report it. But if
you comment out the second line, it *does* report it. This is wrong; nothing
about the second line mitigates the leak, so the analyzer should still report
it even if the second line is present.

MPMoviePlayerViewController* mpvc = [[MPMoviePlayerViewController alloc]
initWithContentURL:urlurl];
[self presentMoviePlayerViewControllerAnimated:mpvc];

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list