fix crashing of ISOProperties.cpp, again

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3937 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-08-04 01:58:16 +00:00
parent 0cb7934d93
commit 8b1aff8b59
1 changed files with 2 additions and 1 deletions

View File

@ -202,9 +202,10 @@ CISOProperties::~CISOProperties()
{
for (std::vector<WiiPartition>::const_iterator PartIter = WiiDisc.begin(); PartIter != WiiDisc.end(); ++PartIter)
{
delete PartIter->FileSystem; // Also deletes the corresponding PartIter->Files
delete PartIter->FileSystem; // Remember the FileList is a member of DiscIO::IFileSystem
delete PartIter->Partition;
}
WiiDisc.clear();
}
else
if (!IsVolumeWadFile(OpenISO))