Bug 155716

Summary: [WinCairo][MediaFoundation] Crash when media player is destroyed.
Product: WebKit Reporter: peavo
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, commit-queue
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description peavo 2016-03-21 07:06:23 PDT
Sometimes I get a crash in the MediaPlayerPrivateMediaFoundation destructor when trying to release the custom video presenter member, which already has been released. This is because we have forgotten to call AddRef in the ActivateObject method. According to the documentation in https://msdn.microsoft.com/en-us/library/windows/desktop/ms694292(v=vs.85).aspx, the caller is responsible for releasing the returned object, which means we have to call AddRef.
Comment 1 peavo 2016-03-21 07:14:37 PDT
Created attachment 274590 [details]
Patch
Comment 2 WebKit Commit Bot 2016-03-21 10:54:21 PDT
Comment on attachment 274590 [details]
Patch

Clearing flags on attachment: 274590

Committed r198493: <http://trac.webkit.org/changeset/198493>
Comment 3 WebKit Commit Bot 2016-03-21 10:54:25 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 peavo 2016-03-21 11:03:13 PDT
Thanks for reviewing :)