fixImageFileCacheCrash

Signed-off-by: hw_wyx <wuyinxiao@huawei.com>
Change-Id: Ifef1b595d0fffb12dc9966bc6a390533e4d1c689
This commit is contained in:
hw_wyx 2024-09-12 11:16:33 +08:00
parent bb5626e481
commit 200269a362

View File

@ -215,8 +215,8 @@ void ImageFileCache::EraseCacheFile(const std::string &url)
TAG_LOGW(AceLogTag::ACE_IMAGE, "remove file %{private}s failed.", removeFile.c_str());
return;
}
cacheFileInfo_.erase(infoIter);
cacheFileSize_ -= infoIter->fileSize;
cacheFileInfo_.erase(infoIter);
fileNameToFileInfoPos_.erase(fileCacheKey);
}
}