Fmod core api encounters crash problem on iOS

I would like to ask if Sound will be released automatically after playing. I set up a callback after playing to play another sound under certain circumstances. In the callback function, I released the previous Sound, but it will crash on iOS. In other cases, it will crash. It doesn’t seem to be possible on the platform.
The code snippet is as follows

channel->setCallback([](FMOD_CHANNELCONTROL *channelcontrol,FMOD_CHANNELCONTROL_TYPE controltype,FMOD_CHANNELCONTROL_CALLBACK_TYPE callbacktype,void *commanddata1,void *commanddata2) -> FMOD_RESULT {
				if(FMOD_CHANNELCONTROL_CALLBACK_END==callbacktype)
				{
					FMOD::Channel *cc = (FMOD::Channel*)channelcontrol;
										// The following release will crash on ios
					FMOD::Sound      *s = nullptr;
					if(FMOD_OK==ERRCHECK(cc->getCurrentSound(&s)) && s)
					{
						s->release();
					}
				}
				return FMOD_OK;
			});

Hi,

What version of the FMOD engine are you using?

No, release will need to be called to free the sound object.

Would it be possible to get the full script? I would like to see how the sound is being played. If you check the result returned from s->release(); what is returned? Additional information about Sound::release can be found here: FMOD Engine | Core API Reference - Sound::release.

I’m using this version: fmodstudioapi20207ios-installer.dmg, Do I need to upgrade to the latest version? The latest version does not have this Problem?

Thank you for the information, updating to the latest may solve the issue.

Unfortunately, I am not sure as I am unable to reproduce the issue. Would it be possible to see the full script as well?