Fixed memory leak when using TTF labels (#18505)

* Fixed memory leak when using TTF labels

* FIX : Fixed memory leak in updateContent instead of dealloc
This commit is contained in:
Yannick Berthier 2017-12-04 02:02:13 +01:00 committed by minggo
parent a7a61e6a83
commit 1b2a48bd2a
1 changed files with 1 additions and 1 deletions

View File

@ -1373,7 +1373,7 @@ void Label::updateContent()
if (_fontAtlas)
{
_batchNodes.clear();
CC_SAFE_RELEASE_NULL(_reusedLetter);
FontAtlasCache::releaseFontAtlas(_fontAtlas);
_fontAtlas = nullptr;
}