Bug 141765

Summary: [Win] CFData leak in CDMSessionAVFoundationCF
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: WebKit Misc.Assignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, eric.carlson, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch joepeck: review+

Description Joseph Pecoraro 2015-02-18 12:44:33 PST
* SUMMARY
Possible CFData leak in CDMSessionAVFoundationCF.

This looks like a leak to me:

    RetainPtr<CFDataRef> keyRequest = AVCFAssetResourceLoadingRequestCreateStreamingContentKeyRequestDataForApp(...);

The naming of the method implies "Create" so I would expect an adoptCF() into the RetainPtr.
Comment 1 Brent Fulgham 2015-02-18 14:10:39 PST
(In reply to comment #0)
> * SUMMARY
> Possible CFData leak in CDMSessionAVFoundationCF.
> 
> This looks like a leak to me:
> 
>     RetainPtr<CFDataRef> keyRequest =
> AVCFAssetResourceLoadingRequestCreateStreamingContentKeyRequestDataForApp(...
> );
> 
> The naming of the method implies "Create" so I would expect an adoptCF()
> into the RetainPtr.

I agree!
Comment 2 Radar WebKit Bug Importer 2015-02-18 14:11:30 PST
<rdar://problem/19880286>
Comment 3 Brent Fulgham 2015-02-18 14:36:37 PST
Created attachment 246849 [details]
Patch
Comment 4 Joseph Pecoraro 2015-02-18 15:20:46 PST
Comment on attachment 246849 [details]
Patch

r=me! Thanks.
Comment 5 Brent Fulgham 2015-02-18 16:20:23 PST
Committed r180324: <http://trac.webkit.org/changeset/180324>