<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - unsafety GenericEventQueue operation"
href="https://bugs.webkit.org/show_bug.cgi?id=142958#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - unsafety GenericEventQueue operation"
href="https://bugs.webkit.org/show_bug.cgi?id=142958">bug 142958</a>
from <span class="vcard"><a class="email" href="mailto:cdumez@apple.com" title="Chris Dumez <cdumez@apple.com>"> <span class="fn">Chris Dumez</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=142958#c6">comment #6</a>)
<span class="quote">> Let us to analysis Class SourceBuffer .
> m_asyncEventQueue is a member of SourceBuffer . When SourceBuffer is
> constructed , m_asyncEventQueue is created .
> When SourceBuffer::scheduleEvent is called , event is appened into
> m_pendingEvents and m_weakPtrFactory is appended into
> GenericEventQueue::pendingQueues().
> When SourceBuffer is destructor, GenericEventQueue is also destructor.
> But if event may be not fired , i think the event should be Invaild .
> I think these evnet should be deleted .</span >
As you said, the GenericEventQueue is destroyed. When it is destroyed, its "Deque<RefPtr<Event>> m_pendingEvents" member is also destroyed. When the Dequeue is destroyed, all the events in it will be unref'd (and destroyed if no one else is holding a reference to them).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>