orbit
orbit copied to clipboard
Potential for memory leakage
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.