mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Core: Correct a use after free.
This commit is contained in:
parent
1810692236
commit
c9f3878e9d
1 changed files with 1 additions and 1 deletions
|
@ -392,8 +392,8 @@ bool UmdReplace(const Path &filepath, std::string &error) {
|
|||
FileLoader *loadedFile = ConstructFileLoader(filepath);
|
||||
|
||||
if (!loadedFile->Exists()) {
|
||||
delete loadedFile;
|
||||
error = loadedFile->GetPath().ToVisualString() + " doesn't exist";
|
||||
delete loadedFile;
|
||||
return false;
|
||||
}
|
||||
UpdateLoadedFile(loadedFile);
|
||||
|
|
Loading…
Add table
Reference in a new issue