mirror of https://github.com/axmolengine/axmol.git
Clear unique_ptr with reset().
This commit is contained in:
parent
b865d9e18e
commit
6f47d44b81
|
@ -132,13 +132,13 @@ namespace cocos2d {
|
||||||
if (!IsEqualGUID(fmtInfo.ExtParams.SubFormat, WAV_SUBTYPE_PCM)
|
if (!IsEqualGUID(fmtInfo.ExtParams.SubFormat, WAV_SUBTYPE_PCM)
|
||||||
&& !IsEqualGUID(fmtInfo.ExtParams.SubFormat, WAV_SUBTYPE_IEEE_FLOAT))
|
&& !IsEqualGUID(fmtInfo.ExtParams.SubFormat, WAV_SUBTYPE_IEEE_FLOAT))
|
||||||
{
|
{
|
||||||
fileStream = nullptr;
|
fileStream.reset();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ALOGW("The wav format %d doesn't supported currently!", (int)fmtInfo.AudioFormat);
|
ALOGW("The wav format %d doesn't supported currently!", (int)fmtInfo.AudioFormat);
|
||||||
fileStream = nullptr;
|
fileStream.reset();
|
||||||
assert(false);
|
assert(false);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue