mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-11 02:45:09 +08:00
fix a viewinfostore's crash
This commit is contained in:
parent
9b325a35ad
commit
f09b947e48
@ -195,10 +195,11 @@ ViewInfoStore::InfoRecord::InfoRecord() {
|
||||
|
||||
ViewInfoStore::InfoRecord* ViewInfoStore::InfoRecord::obtain() {
|
||||
InfoRecord* record = sPool.acquire();
|
||||
if(record==nullptr)record = new InfoRecord();
|
||||
record->preInfo = nullptr;
|
||||
record->postInfo = nullptr;
|
||||
record->flags = 0;
|
||||
return record == nullptr ? new InfoRecord() : record;
|
||||
return record;
|
||||
}
|
||||
|
||||
void ViewInfoStore::InfoRecord::recycle(InfoRecord* record) {
|
||||
|
Loading…
Reference in New Issue
Block a user