From e2e466e315f645d19b592d62dcf573c706175e17 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Mon, 24 Aug 2009 17:59:38 -0700 Subject: [PATCH] Null out reference in onDestroy method Change-Id: Idc3b7c52ae60121756e071ed2468ee1b9496c1c1 --- src/com/android/exchange/SyncManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/exchange/SyncManager.java b/src/com/android/exchange/SyncManager.java index 9b77fcae3..baab1c2bd 100644 --- a/src/com/android/exchange/SyncManager.java +++ b/src/com/android/exchange/SyncManager.java @@ -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