diff --git a/cocos/2d/CCLabel.cpp b/cocos/2d/CCLabel.cpp index a005dd730d..af6852c6ab 100644 --- a/cocos/2d/CCLabel.cpp +++ b/cocos/2d/CCLabel.cpp @@ -584,6 +584,10 @@ void Label::setFontAtlas(FontAtlas* atlas,bool distanceFieldEnabled /* = false * if (atlas == _fontAtlas) { + if (_fontAtlas) + { + FontAtlasCache::releaseFontAtlas(_fontAtlas); + } return; }