Null out reference in onDestroy method

Change-Id: Idc3b7c52ae60121756e071ed2468ee1b9496c1c1
This commit is contained in:
Marc Blank 2009-08-24 17:59:38 -07:00
parent 137be44d5c
commit e2e466e315

View File

@ -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