<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>155716</bug_id>
          
          <creation_ts>2016-03-21 07:06:23 -0700</creation_ts>
          <short_desc>[WinCairo][MediaFoundation] Crash when media player is destroyed.</short_desc>
          <delta_ts>2016-03-21 11:03:13 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>peavo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1176722</commentid>
    <comment_count>0</comment_count>
    <who name="">peavo</who>
    <bug_when>2016-03-21 07:06:23 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1176726</commentid>
    <comment_count>1</comment_count>
      <attachid>274590</attachid>
    <who name="">peavo</who>
    <bug_when>2016-03-21 07:14:37 -0700</bug_when>
    <thetext>Created attachment 274590
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1176772</commentid>
    <comment_count>2</comment_count>
      <attachid>274590</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-03-21 10:54:21 -0700</bug_when>
    <thetext>Comment on attachment 274590
Patch

Clearing flags on attachment: 274590

Committed r198493: &lt;http://trac.webkit.org/changeset/198493&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1176773</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-03-21 10:54:25 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1176779</commentid>
    <comment_count>4</comment_count>
    <who name="">peavo</who>
    <bug_when>2016-03-21 11:03:13 -0700</bug_when>
    <thetext>Thanks for reviewing :)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>274590</attachid>
            <date>2016-03-21 07:14:37 -0700</date>
            <delta_ts>2016-03-21 10:54:21 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-155716-20160321151442.patch</filename>
            <type>text/plain</type>
            <size>1491</size>
            <attacher>peavo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE5ODQ4NykKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDE2LTAzLTIxICBQZXIgQXJu
ZSBWb2xsYW4gIDxwZWF2b0BvdXRsb29rLm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09PT09PT09PT09PQotLS0gU291cmNlL1dl
YkNvcmUvcGxhdGZvcm0vZ3JhcGhpY3Mvd2luL01lZGlhUGxheWVyUHJpdmF0ZU1lZGlhRm91bmRh
dGlvbi5jcHAJKHJldmlzaW9uIDE5ODQ2OCkKKysrIFNvdXJjZS9XZWJDb3JlL3BsYXRmb3JtL2dy
YXBoaWNzL3dpbi9NZWRpYVBsYXllclByaXZhdGVNZWRpYUZvdW5kYXRpb24uY3BwCSh3b3JraW5n
IGNvcHkpCkBAIC0xMTY3LDYgKzExNjcsNyBAQCBIUkVTVUxUIE1lZGlhUGxheWVyUHJpdmF0ZU1l
ZGlhRm91bmRhdGlvCiAKICAgICBpZiAocmlpZCA9PSBJSURfSU1GVmlkZW9QcmVzZW50ZXIpIHsK
ICAgICAgICAgKnBwdiA9IHN0YXRpY19jYXN0PElNRlZpZGVvUHJlc2VudGVyKj4odGhpcyk7Cisg
ICAgICAgIEFkZFJlZigpOwogICAgICAgICByZXR1cm4gU19PSzsKICAgICB9CiAgICAgcmV0dXJu
IEVfRkFJTDsK
</data>

          </attachment>
      

    </bug>

</bugzilla>