Loaders: Fix a mismatched delete call

This commit is contained in:
Lioncash 2014-12-03 14:55:20 -05:00
parent 28c754a757
commit 9f1bebe201

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;