mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-11 15:13:37 +02:00
Fix fileref memory leak
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user