commit | 3572293500a7406813e61e6fedd63ca606debc19 | [log] [tgz] |
---|---|---|
author | Jeff Hamilton <jham@android.com> | Tue Aug 09 00:12:15 2011 -0500 |
committer | Jeff Hamilton <jham@android.com> | Tue Aug 09 00:16:23 2011 -0500 |
tree | eea6adb914f9f651b0bc8dbfdebb617137cb4973 | |
parent | 485f5eb5529c69c4864516c2e2762ab581c7e4ca [diff] |
Fix a BroadcastReceiver leak. The AccountTypeManager singleton is registered in the ContactsApplication's getSystemService() but the call to get the singleton was using the given context not its .getApplicationContext(). thereby leaking when it was passed an Activity. This fix seems cleaner then making sure each caller passes the proper type of context. Change-Id: I324a05449770e35bfaffb6773a394d63e9ddfb59