mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06: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:
@ -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
|
||||
|
Reference in New Issue
Block a user