Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: Source/WebCore/workers/WorkerEventQueue.cpp

Issue 10261008: Merge 113291 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/workers/WorkerEventQueue.cpp
===================================================================
--- Source/WebCore/workers/WorkerEventQueue.cpp (revision 115613)
+++ Source/WebCore/workers/WorkerEventQueue.cpp (working copy)
@@ -58,6 +58,12 @@
return adoptPtr(new EventDispatcherTask(event, eventQueue));
}
+ virtual ~EventDispatcherTask()
+ {
+ if (m_event)
+ m_eventQueue->removeEvent(m_event.get());
+ }
+
void dispatchEvent(ScriptExecutionContext*, PassRefPtr<Event> event)
{
event->target()->dispatchEvent(event);
@@ -69,6 +75,7 @@
return;
m_eventQueue->removeEvent(m_event.get());
dispatchEvent(context, m_event);
+ m_event.clear();
}
void cancel()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698