weimingtom / nekonme

Automatically exported from code.google.com/p/nekonme
0 stars 0 forks source link

Weak event listeners garbage collected too early. #271

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a weak event listener:
container.addEventListener(Event.ENTER_FRAME, update, false, 0, true);

2. Compile using Flash target. Works as expected/Like AS3; weak listener will 
only get garbage collected when the "container" is queued for GC itself.

3. Compile using CPP target. All weak listeners are garbage collected shortly 
(a second or two) after being created, regardless of their status.

Original issue reported on code.google.com by capn.lu...@radialgames.com on 8 Nov 2012 at 6:16