mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-20 14:11:42 +00:00
Crashfix during clearing
This commit is contained in:
parent
2bf2f745e2
commit
6f9941dafa
@ -102,7 +102,10 @@ bool IconCache::LoadFromFile(FILE *file) {
|
||||
void IconCache::ClearTextures() {
|
||||
std::unique_lock<std::mutex> lock(lock_);
|
||||
for (auto &iter : cache_) {
|
||||
iter.second.texture->Release();
|
||||
if (iter.second.texture) {
|
||||
iter.second.texture->Release();
|
||||
iter.second.texture = nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user