Open edenman opened 6 years ago
InternalLifecycleIntegration
is a retained fragment, yes, but you're leaking the observers of * ↳ PlaceDirections.placeIDToDirectionsRelays
yourself.
You need to unsubscribe your lambdas. Use composite disposables.
A fun thing I learned today is that Flow uses Fragments for some reason? I'm looking at the
InternalLifecycleIntegration
code and I'm pretty much baffled by what's going on. Looks like it attaches a fragment to the Activity in onCreate, but then somehowFragmentManager
is keeping a reference to it even after the activity has been destroyed?LeakCanary 1.6.2, fwiw