diff options
Diffstat (limited to 'Source/WebCore/dom/GenericEventQueue.cpp')
-rw-r--r-- | Source/WebCore/dom/GenericEventQueue.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/WebCore/dom/GenericEventQueue.cpp b/Source/WebCore/dom/GenericEventQueue.cpp index 75543c7b6..a177d61a8 100644 --- a/Source/WebCore/dom/GenericEventQueue.cpp +++ b/Source/WebCore/dom/GenericEventQueue.cpp @@ -85,6 +85,7 @@ void GenericEventQueue::timerFired(Timer<GenericEventQueue>*) Vector<RefPtr<Event> > pendingEvents; m_pendingEvents.swap(pendingEvents); + RefPtr<EventTarget> protect(m_owner); for (unsigned i = 0; i < pendingEvents.size(); ++i) { EventTarget* target = pendingEvents[i]->target() ? pendingEvents[i]->target() : m_owner; target->dispatchEvent(pendingEvents[i].release()); |