mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix another Qt memory leak
This commit is contained in:
parent
903abe8779
commit
d30f1c2019
1 changed files with 6 additions and 0 deletions
|
@ -140,6 +140,12 @@ void TextDrawerQt::ClearCache() {
|
|||
}
|
||||
cache_.clear();
|
||||
sizeCache_.clear();
|
||||
// Also wipe the font map.
|
||||
for (auto iter : fontMap_) {
|
||||
delete iter.second;
|
||||
}
|
||||
fontMap_.clear();
|
||||
fontHash_ = 0;
|
||||
}
|
||||
|
||||
void TextDrawerQt::DrawStringRect(DrawBuffer &target, const char *str, const Bounds &bounds, uint32_t color, int align) {
|
||||
|
|
Loading…
Add table
Reference in a new issue