Changeset 196602 in webkit
- Timestamp:
- Feb 15, 2016 2:36:00 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r196599 r196602 1 2016-02-15 Jer Noble <jer.noble@apple.com> 2 3 Null-deref crash in DefaultAudioDestinationNode::suspend() 4 https://bugs.webkit.org/show_bug.cgi?id=154248 5 6 Reviewed by Alex Christensen. 7 8 Null-check scriptExecutionContext() before deref. 9 10 * Modules/webaudio/DefaultAudioDestinationNode.cpp: 11 (WebCore::DefaultAudioDestinationNode::resume): 12 (WebCore::DefaultAudioDestinationNode::suspend): 13 (WebCore::DefaultAudioDestinationNode::close): 14 1 15 2016-02-15 Chris Dumez <cdumez@apple.com> 2 16 -
trunk/Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp
r182141 r196602 112 112 if (isInitialized()) 113 113 m_destination->start(); 114 context()->scriptExecutionContext()->postTask(function); 114 if (auto scriptExecutionContext = context()->scriptExecutionContext()) 115 scriptExecutionContext->postTask(function); 115 116 } 116 117 … … 120 121 if (isInitialized()) 121 122 m_destination->stop(); 122 context()->scriptExecutionContext()->postTask(function); 123 if (auto scriptExecutionContext = context()->scriptExecutionContext()) 124 scriptExecutionContext->postTask(function); 123 125 } 124 126 … … 127 129 ASSERT(isInitialized()); 128 130 uninitialize(); 129 context()->scriptExecutionContext()->postTask(function); 131 if (auto scriptExecutionContext = context()->scriptExecutionContext()) 132 scriptExecutionContext->postTask(function); 130 133 } 131 134
Note: See TracChangeset
for help on using the changeset viewer.