Null out reference in onDestroy method
Change-Id: Idc3b7c52ae60121756e071ed2468ee1b9496c1c1
This commit is contained in:
parent
137be44d5c
commit
e2e466e315
@ -702,6 +702,7 @@ public class SyncManager extends Service implements Runnable {
|
||||
// Don't leak the Intent associated with this listener
|
||||
if (mAccountsUpdatedListener != null) {
|
||||
AccountManager.get(this).removeOnAccountsUpdatedListener(mAccountsUpdatedListener);
|
||||
mAccountsUpdatedListener = null;
|
||||
}
|
||||
|
||||
// Clear pending alarms
|
||||
|
Loading…
Reference in New Issue
Block a user