Follow-up to my earlier fix for r147085
authoradachan@apple.com <adachan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Jul 2015 05:39:55 +0000 (05:39 +0000)
committeradachan@apple.com <adachan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Jul 2015 05:39:55 +0000 (05:39 +0000)
commitacb07a3bf7ca3c5d927cfa8482a448d5fa9fd329
tree91e6e86881b1b41ecff763e7c555e118d9f39428
parentef475b6f366c76fb6a2af3003dae918a9e0fbcf3
Follow-up to my earlier fix for r147085
https://bugs.webkit.org/show_bug.cgi?id=147085

Reviewed by Eric Carlson.

* Modules/webaudio/AudioContext.cpp:
(WebCore::AudioContext::isPlayingAudioDidChange):
Null-check document() before dereferencing it in case the audio context's document is destroyed
by the time the code block is called on the main thread.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187098 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Modules/webaudio/AudioContext.cpp