You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After looking in a heap dump of our Zircon application I found a no longer shown GameArea (and its references). The problem is that Cobalt is not used properly 馃槢 In BaseGameArea.init an onChange listener is registered. But it is never unregistered! So the EventBus of Cobalt holds that listener forever. That listener has a reference to the GameArea and therefore to our own code.
Describe the bug
After looking in a heap dump of our Zircon application I found a no longer shown GameArea (and its references). The problem is that Cobalt is not used properly 馃槢 In
BaseGameArea.init
anonChange
listener is registered. But it is never unregistered! So the EventBus of Cobalt holds that listener forever. That listener has a reference to the GameArea and therefore to our own code.To Reproduce
Do a garbage collection (GC) and create a heap dump.
Expected behavior
No instance of the no longer used
View
should linger in the memory.Screenshots
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: