| Index: Source/core/events/DOMWindowEventQueue.cpp
|
| diff --git a/Source/core/events/DOMWindowEventQueue.cpp b/Source/core/events/DOMWindowEventQueue.cpp
|
| index f785f8906fe09ba39a92df006931a6570b23595b..b4705379ac5fbe5fe410add3f0ef89cb9d80bc50 100644
|
| --- a/Source/core/events/DOMWindowEventQueue.cpp
|
| +++ b/Source/core/events/DOMWindowEventQueue.cpp
|
| @@ -109,8 +109,11 @@ void DOMWindowEventQueue::close()
|
| m_pendingEventTimer->stop();
|
| if (InspectorInstrumentation::hasFrontends()) {
|
| WillBeHeapListHashSet<RefPtrWillBeMember<Event>, 16>::iterator it = m_queuedEvents.begin();
|
| - for (; it != m_queuedEvents.end(); ++it)
|
| - InspectorInstrumentation::didRemoveEvent((*it)->target(), it->get());
|
| + for (; it != m_queuedEvents.end(); ++it) {
|
| + RefPtrWillBeRawPtr<Event> event = *it;
|
| + if (event)
|
| + InspectorInstrumentation::didRemoveEvent(event->target(), event.get());
|
| + }
|
| }
|
| m_queuedEvents.clear();
|
| }
|
|
|