mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-12 22:10:29 +02:00
Don't leak icon textures when shutting down the graphics system.
Happens on Android task switching for example. Also update the README (got rid of kitkat fullscreen temporary because I can't get it to work reliably).
This commit is contained in:
1 parent
8b008397bb
commit
483bf4c74d
3 files changed
+19
-25
No files matched your search
@@ -421,6 +421,13 @@ void GameInfoCache::Clear() {
|
||||
delete iter->second->pic1Texture;
|
||||
iter->second->pic1Texture = 0;
|
||||
}
|
||||
if (!iter->second->iconTextureData.empty()) {
|
||||
iter->second->iconTextureData.clear();
|
||||
}
|
||||
if (iter->second->iconTexture) {
|
||||
delete iter->second->iconTexture;
|
||||
iter->second->iconTexture = 0;
|
||||
}
|
||||
}
|
||||
info_.clear();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user