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
1 changed files with 6 additions and 3 deletions

View File

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