Changeset 180501 in webkit


Ignore:
Timestamp:
Feb 23, 2015 7:21:59 AM (9 years ago)
Author:
commit-queue@webkit.org
Message:

[WinCairo] Crash when media player is destroyed.
https://bugs.webkit.org/show_bug.cgi?id=141248

Patch by peavo@outlook.com <peavo@outlook.com> on 2015-02-23
Reviewed by Darin Adler.

A COM smart pointer is both released, and set to null.
This means that the COM Release method is called twice, causing a crash.

  • platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:

(WebCore::MediaPlayerPrivateMediaFoundation::endSession):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r180500 r180501  
     12015-02-23  peavo@outlook.com  <peavo@outlook.com>
     2
     3        [WinCairo] Crash when media player is destroyed.
     4        https://bugs.webkit.org/show_bug.cgi?id=141248
     5
     6        Reviewed by Darin Adler.
     7
     8        A COM smart pointer is both released, and set to null.
     9        This means that the COM Release method is called twice, causing a crash.
     10
     11        * platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:
     12        (WebCore::MediaPlayerPrivateMediaFoundation::endSession):
     13
    1142015-02-23  Manuel Rego Casasnovas  <rego@igalia.com>
    215
  • trunk/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp

    r180406 r180501  
    242242    if (m_mediaSession) {
    243243        m_mediaSession->Shutdown();
    244         m_mediaSession->Release();
    245244        m_mediaSession = nullptr;
    246245    }
Note: See TracChangeset for help on using the changeset viewer.