diff options
| author | hrydgard <hrydgard@gmail.com> | 2008-08-31 13:36:52 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2008-08-31 13:36:52 +0000 |
| commit | 09406d76c44d3a8efb1932b8d7f1345ae0e4c604 (patch) | |
| tree | 3149bf6c83f7d010ce291b7df832660c6dd00db2 /Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp | |
| parent | d9e129ae99bb11edfc59053c97c1d798e1ab4dad (diff) | |
Fix/workaround at least one class of buffer underruns in the GL plugin. Fix some bad deletes (instead of delete []). etc.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@404 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp b/Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp index 51f0f862cb..bbab62c531 100644 --- a/Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp +++ b/Source/Core/DiscIO/Src/VolumeWiiCrypted.cpp @@ -36,7 +36,9 @@ CVolumeWiiCrypted::CVolumeWiiCrypted(IBlobReader* _pReader, u64 _VolumeOffset, c CVolumeWiiCrypted::~CVolumeWiiCrypted()
{
delete m_pReader; // is this really our responsibility?
+ m_pReader = NULL;
delete[] m_pBuffer;
+ m_pBuffer = NULL;
}
|
