mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 20:28:35 +01:00
Fix fileref memory leak
This commit is contained in:
1 parent
ef14f28099
commit
03df5b7831
2 files changed
+5
-1
No files matched your search
@@ -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