Bug 155716 - [WinCairo][MediaFoundation] Crash when media player is destroyed.
Summary: [WinCairo][MediaFoundation] Crash when media player is destroyed.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-21 07:06 PDT by peavo
Modified: 2016-03-21 11:03 PDT (History)
2 users (show)

See Also:


Attachments
Patch (1.46 KB, patch)
2016-03-21 07:14 PDT, peavo
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 :)