* commit 'a5b5bfbbef09b074328c84f9e1980b62dffab480': Fix memory leak in ManageApplication
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user