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