commit | d201566169824201aad7997d7644ac4e06b199f3 | [log] [tgz] |
---|---|---|
author | markchien <markchien@google.com> | Tue Apr 26 18:08:03 2022 +0800 |
committer | Mark Chien <markchien@google.com> | Fri Apr 29 08:01:23 2022 +0000 |
tree | 787f0600b3357e2d26b97c52994233addd4aad22 | |
parent | ed0fab03568ab1f31c6efb8cff3ee7bb4cf7ecee [diff] |
Fix ConnectivityManager memory leak ConnectivityManager have a self reference static instance. This causes a leak if context is refernce from a static variable. Using the applicationContext, which will never be freed for the life of the application, for the sInstance static instance. Bug: 202978965 Test: atest ConnectivityManagerTest Change-Id: I87206e1bfbb1f877b5a10f5fdbc25e2f9f11bef4