diff options
author | Jeff Sharkey <jsharkey@android.com> | 2011-07-13 09:36:27 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2011-07-13 09:36:46 -0700 |
commit | 0d32528be3b708e8a7ebb4e8d7fd2a2c94d6638e (patch) | |
tree | b13cea04593e3440775a9b34db84b6d054984ffa /core/java/android | |
parent | 3862096cbf4a9b6a3575fa6cc4060e02240d7fee (diff) | |
download | frameworks_base-0d32528be3b708e8a7ebb4e8d7fd2a2c94d6638e.zip frameworks_base-0d32528be3b708e8a7ebb4e8d7fd2a2c94d6638e.tar.gz frameworks_base-0d32528be3b708e8a7ebb4e8d7fd2a2c94d6638e.tar.bz2 |
Release strong Fragment references after exec.
When finished with a Runnable transaction in execPendingActions(),
release the strong reference so that Fragment can be GC'ed.
Bug: 3117761
Change-Id: Ica2f50e363be1bd047bf0474b293efeb814b1264
Diffstat (limited to 'core/java/android')
-rw-r--r-- | core/java/android/app/FragmentManager.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/app/FragmentManager.java b/core/java/android/app/FragmentManager.java index 285f1c1..c82c9ec 100644 --- a/core/java/android/app/FragmentManager.java +++ b/core/java/android/app/FragmentManager.java @@ -1307,6 +1307,7 @@ final class FragmentManagerImpl extends FragmentManager { mExecutingActions = true; for (int i=0; i<numActions; i++) { mTmpActions[i].run(); + mTmpActions[i] = null; } mExecutingActions = false; didSomething = true; |