Clear unique_ptr with reset().

This commit is contained in:
rh101 2021-04-26 15:46:59 +10:00
parent b865d9e18e
commit 6f47d44b81
1 changed files with 2 additions and 2 deletions

View File

@ -132,13 +132,13 @@ namespace cocos2d {
if (!IsEqualGUID(fmtInfo.ExtParams.SubFormat, WAV_SUBTYPE_PCM)
&& !IsEqualGUID(fmtInfo.ExtParams.SubFormat, WAV_SUBTYPE_IEEE_FLOAT))
{
fileStream = nullptr;
fileStream.reset();
return false;
}
break;
default:
ALOGW("The wav format %d doesn't supported currently!", (int)fmtInfo.AudioFormat);
fileStream = nullptr;
fileStream.reset();
assert(false);
return false;
}