Merge pull request #7129 from lioncash/mismatch

Loaders: Fix a mismatched delete call
This commit is contained in:
Unknown W. Brackets 2014-12-03 11:59:03 -08:00
commit 0c349e062a

View File

@ -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;