diff --git a/Source/Core/DolphinWX/Src/ISOProperties.cpp b/Source/Core/DolphinWX/Src/ISOProperties.cpp index 375e806b44..b6e3fbeb5f 100644 --- a/Source/Core/DolphinWX/Src/ISOProperties.cpp +++ b/Source/Core/DolphinWX/Src/ISOProperties.cpp @@ -202,9 +202,10 @@ CISOProperties::~CISOProperties() { for (std::vector::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))