mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
fix some memleaks in DiscIO. Fix for issue 1238.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3936 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -202,10 +202,8 @@ CISOProperties::~CISOProperties()
|
||||
{
|
||||
for (std::vector<WiiPartition>::const_iterator PartIter = WiiDisc.begin(); PartIter != WiiDisc.end(); ++PartIter)
|
||||
{
|
||||
delete PartIter->FileSystem;
|
||||
delete PartIter->FileSystem; // Also deletes the corresponding PartIter->Files
|
||||
delete PartIter->Partition;
|
||||
for (std::vector<const DiscIO::SFileInfo *>::const_iterator FileIter = PartIter->Files.begin(); FileIter != PartIter->Files.end(); ++FileIter)
|
||||
delete *FileIter;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -1068,7 +1066,7 @@ bool CISOProperties::CopySJISToString( wxString& _rDestination, const char* _src
|
||||
}
|
||||
#endif
|
||||
}
|
||||
delete pUnicodeStrBuffer;
|
||||
delete[] pUnicodeStrBuffer;
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
Reference in New Issue
Block a user