diff --git a/cocos/2d/CCLabel.cpp b/cocos/2d/CCLabel.cpp index c79e355111..6937b29a15 100644 --- a/cocos/2d/CCLabel.cpp +++ b/cocos/2d/CCLabel.cpp @@ -294,10 +294,9 @@ Label::~Label() if (_fontAtlas) { FontAtlasCache::releaseFontAtlas(_fontAtlas); - - _eventDispatcher->removeEventListener(_purgeTextureListener); - _eventDispatcher->removeEventListener(_resetTextureListener); } + _eventDispatcher->removeEventListener(_purgeTextureListener); + _eventDispatcher->removeEventListener(_resetTextureListener); CC_SAFE_RELEASE_NULL(_reusedLetter); }