⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 293726 in webkit


Ignore:
Timestamp:
May 3, 2022, 9:00:59 AM (4 years ago)
Author:
youenn@apple.com
Message:

AudioMediaStreamTrackRendererUnit::updateRenderSourcesIfNecessary can free memory
​https://bugs.webkit.org/show_bug.cgi?id=240002

Reviewed by Eric Carlson.

Manually tested.

  • platform/mediastream/cocoa/AudioMediaStreamTrackRendererUnit.cpp:

Overwriting the source vector may lead to freeing AudioSampleDataSources.
This is ok as this happens rarely, add DisableMallocRestrictionsForCurrentThreadScope for that purpose.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r293725 r293726  
     12022-05-03  Youenn Fablet  <youenn@apple.com>
     2
     3        AudioMediaStreamTrackRendererUnit::updateRenderSourcesIfNecessary can free memory
     4        https://bugs.webkit.org/show_bug.cgi?id=240002
     5
     6        Reviewed by Eric Carlson.
     7
     8        Manually tested.
     9
     10        * platform/mediastream/cocoa/AudioMediaStreamTrackRendererUnit.cpp:
     11        Overwriting the source vector may lead to freeing AudioSampleDataSources.
     12        This is ok as this happens rarely, add DisableMallocRestrictionsForCurrentThreadScope for that purpose.
     13
    1142022-05-03  Antti Koivisto  <antti@apple.com>
    215
  • trunk/Source/WebCore/platform/mediastream/cocoa/AudioMediaStreamTrackRendererUnit.cpp

    r288109 r293726  
    170170        return;
    171171
     172    DisableMallocRestrictionsForCurrentThreadScope disableMallocRestrictions;
    172173    m_renderSources = WTFMove(m_pendingRenderSources);
    173174    m_hasPendingRenderSources = false;
Note: See TracChangeset for help on using the changeset viewer.