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:
parent
8aee5f053e
commit
5533ac9b7f
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue