Changeset 211386 in webkit
- Timestamp:
- Jan 30, 2017 2:09:01 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r211382 r211386 1 2017-01-30 Jer Noble <jer.noble@apple.com> 2 3 NULL-deref crash at PlatformMediaSession::endInterruption 4 https://bugs.webkit.org/show_bug.cgi?id=167595 5 6 Reviewed by Eric Carlson. 7 8 Use the same, NULL-aware forEachSession() iterator rather than iterating over m_sessions directly. 9 10 * platform/audio/PlatformMediaSessionManager.cpp: 11 (WebCore::PlatformMediaSessionManager::beginInterruption): 12 (WebCore::PlatformMediaSessionManager::endInterruption): 13 1 14 2017-01-30 Myles C. Maxfield <mmaxfield@apple.com> 2 15 -
trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp
r210828 r211386 113 113 114 114 m_interrupted = true; 115 Vector<PlatformMediaSession*> sessions = m_sessions;116 for (auto* session : sessions)117 session->beginInterruption(type);115 forEachSession([type] (PlatformMediaSession& session, size_t) { 116 session.beginInterruption(type); 117 }); 118 118 updateSessionState(); 119 119 } … … 124 124 125 125 m_interrupted = false; 126 Vector<PlatformMediaSession*> sessions = m_sessions;127 for (auto* session : sessions)128 session->endInterruption(flags);126 forEachSession([flags] (PlatformMediaSession& session, size_t) { 127 session.endInterruption(flags); 128 }); 129 129 } 130 130
Note: See TracChangeset
for help on using the changeset viewer.