diff --git a/native/cocos/2d/CCLabel.cpp b/native/cocos/2d/CCLabel.cpp index 5cee819560..adf3c18d9e 100644 --- a/native/cocos/2d/CCLabel.cpp +++ b/native/cocos/2d/CCLabel.cpp @@ -1251,9 +1251,10 @@ void Label::createSpriteForSystemFont(const FontDefinition& fontDef) auto newSize = _textSprite->getContentSize(); if(_overflow == Overflow::RESIZE_HEIGHT) { this->setContentSize(Size(_contentSize.width, newSize.height)); - } else if (_overflow == Overflow::NONE) { + } else { this->setContentSize(newSize); } + texture->release(); if (_blendFuncDirty) {