Closed Ethan1983 closed 1 year ago
@anjaneesh Could you have a look at this? This is not a Demo issue per se instead is on sender SDK.
Confirmed leak via Leak Canary in the demo app too.
Also happening in 21.0.1.
Work around was just to use application context.
I know this is an old issue but I stumbled upon this when debugging a memory leak and it helped me to pinpoint the problem. The issue seems to be fixed with Android Sender 21.1.0
(ref).
Hi Team,
CastContext has a static member zzkf which in some cases ends up holding reference to activity (depending upon context type). When getSharedInstance is invoked from activity (var0), it is used to get a MediaRouter instance and this in turn is kept track in zzkf. This has changed in 19.0.0.