mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 13:18:50 +00:00
More memory leak fixing.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5072 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
b88f510984
commit
c3697df665
4 changed files with 32 additions and 1 deletions
|
@ -145,5 +145,27 @@ void FindFilename(u64 offset)
|
|||
CheckFile(fname, pFileSystem->GetFileSize(fname));
|
||||
}
|
||||
|
||||
void Close()
|
||||
{
|
||||
if(OpenISO != NULL)
|
||||
{
|
||||
delete OpenISO;
|
||||
OpenISO = NULL;
|
||||
}
|
||||
|
||||
if(pFileSystem != NULL)
|
||||
{
|
||||
delete pFileSystem;
|
||||
pFileSystem = NULL;
|
||||
}
|
||||
|
||||
// GCFiles' pointers are no longer valid after pFileSystem is cleared
|
||||
GCFiles.clear();
|
||||
|
||||
ISOFile = "";
|
||||
CurrentFile = "";
|
||||
FileAccess = true;
|
||||
}
|
||||
|
||||
|
||||
} // FileMon
|
||||
|
|
|
@ -28,5 +28,6 @@ void ShowSound(std::string File);
|
|||
void ReadGC(std::string File);
|
||||
void CheckFile(std::string File, int Size);
|
||||
void FindFilename(u64 Offset);
|
||||
void Close();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue