mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
PPGe: Clear text allocations on shutdown.
This commit is contained in:
parent
47523a0557
commit
839be8e636
1 changed files with 5 additions and 1 deletions
|
@ -125,7 +125,7 @@ struct PPGeTextDrawerImage {
|
|||
TextStringEntry entry;
|
||||
u32 ptr;
|
||||
};
|
||||
std::map<PPGeTextDrawerCacheKey, PPGeTextDrawerImage> textDrawerImages;
|
||||
static std::map<PPGeTextDrawerCacheKey, PPGeTextDrawerImage> textDrawerImages;
|
||||
|
||||
void PPGeSetDrawContext(Draw::DrawContext *draw) {
|
||||
g_draw = draw;
|
||||
|
@ -364,6 +364,10 @@ void __PPGeShutdown()
|
|||
|
||||
delete textDrawer;
|
||||
textDrawer = nullptr;
|
||||
|
||||
for (auto im : textDrawerImages)
|
||||
kernelMemory.Free(im.second.ptr);
|
||||
textDrawerImages.clear();
|
||||
}
|
||||
|
||||
void PPGeBegin()
|
||||
|
|
Loading…
Add table
Reference in a new issue