mirror of https://github.com/axmolengine/axmol.git
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:
parent
a7a61e6a83
commit
1b2a48bd2a
|
@ -1373,7 +1373,7 @@ void Label::updateContent()
|
||||||
if (_fontAtlas)
|
if (_fontAtlas)
|
||||||
{
|
{
|
||||||
_batchNodes.clear();
|
_batchNodes.clear();
|
||||||
|
CC_SAFE_RELEASE_NULL(_reusedLetter);
|
||||||
FontAtlasCache::releaseFontAtlas(_fontAtlas);
|
FontAtlasCache::releaseFontAtlas(_fontAtlas);
|
||||||
_fontAtlas = nullptr;
|
_fontAtlas = nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue