[DF-1074] Fixed access to freed memory in SoundChannel and SoundInstance classes.