Closed
Bug 1040023
Opened 10 years ago
Closed 8 years ago
Broadcast event queues must hold their targets weakly
Categories
(Firefox Graveyard :: Shumway, defect, P2)
Firefox Graveyard
Shumway
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: till, Assigned: mbx)
References
Details
Currently, any DisplayObject that has any frame event listeners is strongly held by the broadcastEventDispatchQueue. Instead, they have to be weakly held. Consider this test case (only works in the IDE or debug player): var clip:MovieClip = new MovieClip(); clip.addEventListener(Event.FRAME_CONSTRUCTED, function() {trace('constructed')}); clip = null; flash.system.System.gc(); In the Flash Player, this doesn't trace at all, whereas we keep tracing indefinitely.
Assignee | ||
Comment 1•10 years ago
|
||
I will try to see if I can use MovieClip reference counts to remove the event handlers from the `broadcastEventDispatchQueue`.
Assignee: nobody → mbebenita
Assignee | ||
Updated•10 years ago
|
Blocks: shumway-m3
Updated•10 years ago
|
Priority: -- → P3
Updated•10 years ago
|
Priority: P3 → P2
Reporter | ||
Comment 2•9 years ago
|
||
We might not need to fix this for ads: they play for 30 seconds and then stop, so there's probably not much need for weak listeners, etc. Moving to m5 for now.
Updated•8 years ago
|
Product: Firefox → Firefox Graveyard
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•