diff --git a/cocos/renderer/CCRenderState.cpp b/cocos/renderer/CCRenderState.cpp index 5b447f39ee..9d51cc6028 100644 --- a/cocos/renderer/CCRenderState.cpp +++ b/cocos/renderer/CCRenderState.cpp @@ -83,7 +83,7 @@ void RenderState::initialize() void RenderState::finalize() { - CC_SAFE_RELEASE(StateBlock::_defaultState); + CC_SAFE_RELEASE_NULL(StateBlock::_defaultState); } bool RenderState::init(RenderState* parent)