--- libgig/trunk/ChangeLog 2021/06/19 12:02:19 3963 +++ libgig/trunk/ChangeLog 2021/07/16 16:53:13 3974 @@ -74,6 +74,9 @@ - Changed signature of method Instrument::UnsetScriptPatchVariable(int,String) to Instrument::UnsetScriptPatchVariable(ssize_t,String). + - Fixed iterator invalidation (i.e. crash) caused by adding / removing + samples (only triggered if now deprecated File::GetFirstSample() / + File::GetNextSample() methods were still used). * src/SF.cpp, src/SF.h: - File::DeleteInstrument(): Fix clang sanatizer warning. @@ -100,6 +103,9 @@ - Marked methods File::GetFirstInstrument() and File::GetNextInstrument() as deprecated. - Added method Instrument::CountRegions(). + - Fixed iterator invalidation (i.e. crash) caused by adding / removing + samples (only triggered if now deprecated File::GetFirstSample() / + File::GetNextSample() methods were still used). * src/RIFF.cpp, src/RIFF.h: - Chunk::LoadChunkData(): Fix clang sanatizer warning.