orbit icon indicating copy to clipboard operation
orbit copied to clipboard

Potential for memory leakage

Open crosby-moe opened this issue 2 years ago • 0 comments

Subscribing an object to an EventBus via EventBus.subscribe(Object) adds said object and it's associated listeners to the listenerCache during the getListeners call. This map is never shrunk/cleared, resulting in said objects never being able to be garbage collected, even after being unsubscribed.

crosby-moe avatar May 16 '23 19:05 crosby-moe