mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix fileref memory leak
This commit is contained in:
parent
ef14f28099
commit
03df5b7831
2 changed files with 5 additions and 1 deletions
|
@ -1169,6 +1169,11 @@ ReplacedTexture::~ReplacedTexture() {
|
|||
threadWaitable_->WaitAndRelease();
|
||||
threadWaitable_ = nullptr;
|
||||
}
|
||||
|
||||
for (auto &level : levels_) {
|
||||
vfs_->ReleaseFile(level.fileRef);
|
||||
level.fileRef = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
bool ReplacedTexture::CopyLevelTo(int level, void *out, int rowPitch) {
|
||||
|
|
|
@ -150,7 +150,6 @@ struct ReplacedTexture {
|
|||
}
|
||||
|
||||
bool IsReady(double budget);
|
||||
|
||||
bool CopyLevelTo(int level, void *out, int rowPitch);
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Reference in a new issue