From 8b1aff8b5935f113e7551ac5e8395e270e40b78d Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Tue, 4 Aug 2009 01:58:16 +0000 Subject: [PATCH] fix crashing of ISOProperties.cpp, again git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3937 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/ISOProperties.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))