13
0

fix crash when using Region > Loop

This commit is contained in:
Paul Davis 2019-11-24 11:32:34 -07:00
parent 1df47e9fb4
commit c10df23a0f

View File

@ -1599,6 +1599,10 @@ DiskReader::set_loop (Location* loc)
void
DiskReader::reload_loop ()
{
if (!_loop_location) {
return;
}
Location* loc = _loop_location;
boost::scoped_array<Sample> mix_buf (new Sample [loop_fade_length]);
boost::scoped_array<Sample> gain_buf (new Sample [loop_fade_length]);