fix crash that could happen when closing ISOProperties on a wii disc

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2750 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-03-24 23:58:32 +00:00
parent 8aee5f053e
commit 5533ac9b7f

View File

@ -172,9 +172,12 @@ CISOProperties::CISOProperties(const std::string fileName, wxWindow* parent, wxW
CISOProperties::~CISOProperties()
{
delete pFileSystem;
delete OpenISO;
WiiDisc.clear();
if (IsVolumeWiiDisc(OpenISO))
WiiDisc.clear();
else
delete pFileSystem;
delete OpenISO;
}
void CISOProperties::CreateDirectoryTree(wxTreeItemId& parent,