mirror of https://github.com/OpenRCT2/OpenRCT2.git
![]() * Fix memory leak loading malformed `SawyerChunk` A temporary buffer was not free'd after failing to parse in `SawyerChunkReader::ReadChunkTrack`. Fix this following the pattern used in `SawyerChunkReader::ReadChunk` by wrapping the relevant code in a `try` block with `FreeLargeTempBuffer` called when an exception is caught. * Use unique_ptr * Remove `AllocateLargeTempBuffer` --------- Co-authored-by: Michał Janiszewski <janisozaur@gmail.com> |
||
---|---|---|
.. | ||
EntryList.h | ||
Limits.h | ||
RCT12.cpp | ||
RCT12.h | ||
SawyerChunk.cpp | ||
SawyerChunk.h | ||
SawyerChunkReader.cpp | ||
SawyerChunkReader.h | ||
SawyerChunkWriter.cpp | ||
SawyerChunkWriter.h |