summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/applications/ManageApplications.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2014-02-06 22:39:13 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-06 22:39:13 +0000
commitb5ba7e2435eda9c6ba909f4760de6f222e177da2 (patch)
treeac4367018bdf48a6cafdadf25c7cb19ee36b78d0 /src/com/android/settings/applications/ManageApplications.java
parentd3aee23cb69dbee295ede91b7980b947dcf78272 (diff)
parenta5b5bfbbef09b074328c84f9e1980b62dffab480 (diff)
downloadpackages_apps_Settings-b5ba7e2435eda9c6ba909f4760de6f222e177da2.tar.gz
packages_apps_Settings-b5ba7e2435eda9c6ba909f4760de6f222e177da2.tar.bz2
packages_apps_Settings-b5ba7e2435eda9c6ba909f4760de6f222e177da2.zip
am a5b5bfbb: am 5b4350f2: Merge "Fix memory leak in ManageApplication"
* commit 'a5b5bfbbef09b074328c84f9e1980b62dffab480': Fix memory leak in ManageApplication
Diffstat (limited to 'src/com/android/settings/applications/ManageApplications.java')
-rw-r--r--src/com/android/settings/applications/ManageApplications.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/settings/applications/ManageApplications.java b/src/com/android/settings/applications/ManageApplications.java
index 5a11e6ebe..d68b6a998 100644
--- a/src/com/android/settings/applications/ManageApplications.java
+++ b/src/com/android/settings/applications/ManageApplications.java
@@ -319,6 +319,12 @@ public class ManageApplications extends Fragment implements
}
}
+ public void release() {
+ if (mApplications != null) {
+ mApplications.release();
+ }
+ }
+
void updateStorageUsage() {
// Make sure a callback didn't come at an inopportune time.
if (mOwner.getActivity() == null) return;
@@ -591,6 +597,10 @@ public class ManageApplications extends Fragment implements
}
}
+ public void release() {
+ mSession.release();
+ }
+
public void rebuild(int sort) {
if (sort == mLastSortMode) {
return;
@@ -988,6 +998,7 @@ public class ManageApplications extends Fragment implements
// are no longer attached to their view hierarchy.
for (int i=0; i<mTabs.size(); i++) {
mTabs.get(i).detachView();
+ mTabs.get(i).release();
}
}