Projects > cpp > Issues > Bug #3862

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

[New Label] Memory leak in FontFreeType::createFontAtlas()

Bug #3862 [Closed]
dumganhar 2014-01-26 14:06 . Updated almost 11 years ago

Fixed at https://github.com/cocos2d/cocos2d-x/pull/5244

1
atlas->prepareLetterDefinitions(cc_utf8_to_utf16(getCurrentGlyphCollection()));

has to be

1
2
3
        unsigned short* utf16 = cc_utf8_to_utf16(getCurrentGlyphCollection());
        atlas->prepareLetterDefinitions(utf16);
        CC_SAFE_DELETE_ARRAY(utf16);
dumganhar 2014-01-26 14:13
  • Status changed from New to Closed

Atom PDF

Status:Closed
Start date:2014-01-26
Priority:Normal
Due date:
Assignee:dumganhar
% Done:

0%

Category:all
Target version:3.0-beta2