diff --git a/Core/Loaders.cpp b/Core/Loaders.cpp index 92f0f5cff3..fa760804b6 100644 --- a/Core/Loaders.cpp +++ b/Core/Loaders.cpp @@ -579,7 +579,7 @@ void CachingFileLoader::SaveIntoCache(s64 pos, size_t bytes, bool readingAhead) memcpy(buf, wholeRead + (i << BLOCK_SHIFT), BLOCK_SIZE); blocks_[cacheStartPos + i] = BlockInfo(buf); } - delete wholeRead; + delete[] wholeRead; } cacheSize_ += blocksToRead;