[Webkit-unassigned] [Bug 142958] unsafety GenericEventQueue operation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 16 19:09:31 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=142958

--- Comment #7 from Chris Dumez <cdumez at apple.com> ---
(In reply to comment #6)
> 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 .

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).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150417/6e943539/attachment.html>


More information about the webkit-unassigned mailing list