diff options
author | Torbjörn Andersson | 2010-01-19 20:41:51 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2010-01-19 20:41:51 +0000 |
commit | 428f8d6955202a238ea7a8e887d707503a487449 (patch) | |
tree | 7df5bc2dabc63f55e94a79f7396007aee5e627e3 /sound/mods/tfmx.cpp | |
parent | f0e6c3f14204aec1d34860b0595495dbfd505b48 (diff) | |
download | scummvm-rg350-428f8d6955202a238ea7a8e887d707503a487449.tar.gz scummvm-rg350-428f8d6955202a238ea7a8e887d707503a487449.tar.bz2 scummvm-rg350-428f8d6955202a238ea7a8e887d707503a487449.zip |
Fixed some cppcheck warnings.
svn-id: r47393
Diffstat (limited to 'sound/mods/tfmx.cpp')
-rw-r--r-- | sound/mods/tfmx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/mods/tfmx.cpp b/sound/mods/tfmx.cpp index 2ef7d79b7a..50cc68eb6b 100644 --- a/sound/mods/tfmx.cpp +++ b/sound/mods/tfmx.cpp @@ -887,7 +887,7 @@ const int8 *Tfmx::loadSampleFile(uint32 &sampleLen, Common::SeekableReadStream & sampleAlloc[0] = sampleAlloc[1] = sampleAlloc[2] = sampleAlloc[3] = 0; sampleLen = sampleSize; } else { - delete sampleAlloc; + delete[] sampleAlloc; warning("Tfmx: Encountered IO-Error"); return 0; } @@ -994,7 +994,7 @@ const Tfmx::MdatResource *Tfmx::loadMdatFile(Common::SeekableReadStream &musicDa resource->mdatData = mdatAlloc - mdatOffset; resource->mdatLen = mdatSize; } else { - delete mdatAlloc; + delete[] mdatAlloc; warning("Tfmx: Encountered IO-Error"); delete resource; return 0; |