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:
parent
0cb7934d93
commit
8b1aff8b59
|
@ -202,9 +202,10 @@ CISOProperties::~CISOProperties()
|
||||||
{
|
{
|
||||||
for (std::vector<WiiPartition>::const_iterator PartIter = WiiDisc.begin(); PartIter != WiiDisc.end(); ++PartIter)
|
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;
|
delete PartIter->Partition;
|
||||||
}
|
}
|
||||||
|
WiiDisc.clear();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (!IsVolumeWadFile(OpenISO))
|
if (!IsVolumeWadFile(OpenISO))
|
||||||
|
|
Loading…
Reference in New Issue