if i create in a scene 50 labels with this code
CCLabelTTF* label = [CCLabelTTF labelWithString:@"word"
dimensions:CGSizeMake(size.width-50,150)
alignment:CCTextAlignmentCenter
lineBreakMode:CCLineBreakModeWordWrap
fontName:@"Arial Rounded MT Bold"
fontSize:34];
label.position = CGPointMake(size.width / 2, 50);
label.color = ccc3(0,0,0);
[self addChild:label];
every time i start and close my scene resident memory grows for about 30MB
if i change my label code as below by removing dimensions, alignment and lineBreakMode
CCLabelTTF* label = [CCLabelTTF labelWithString:@"word"
fontName:@"Arial Rounded MT Bold"
fontSize:34];
label.position = CGPointMake(size.width / 2, 50);
label.color = ccc3(0,0,0);
[self addChild:label];
profiling my app memory allocation with the VM Tracker shows resident memory to be stabilized while i start and close my scene!
So is there a bug in CCLabelTTF? and not releasing its memory correctly?
i am using the latest cocos2d release version. v1.0.1