am e2e466e3: Null out reference in onDestroy method

Merge commit 'e2e466e315f645d19b592d62dcf573c706175e17'

* commit 'e2e466e315f645d19b592d62dcf573c706175e17':
  Null out reference in onDestroy method
This commit is contained in:
Marc Blank 2009-08-24 18:06:50 -07:00 committed by Android Git Automerger
commit c0010e2f97

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