mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 13:48:02 +08:00
fix abslistview's memleaks
This commit is contained in:
parent
90f151e745
commit
6f0bab1e6e
@ -593,7 +593,11 @@ void AbsListView::setMultiChoiceModeListener(MultiChoiceModeListener listener) {
|
||||
}
|
||||
|
||||
void AbsListView::resetList() {
|
||||
std::vector<View*>children = mChildren;
|
||||
removeAllViewsInLayout();
|
||||
for(auto child:children){
|
||||
delete child;
|
||||
}
|
||||
mFirstPosition = 0;
|
||||
mDataChanged = false;
|
||||
mPositionScrollAfterLayout = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user