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