Skip to content

Commit

Permalink
ActionsTest: fix nonAutoreleased-copy memory leaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
psineur committed Jan 22, 2012
1 parent 50cdd0f commit 91b5bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ActionsTest.m
Expand Up @@ -967,7 +967,7 @@ -(id) init
id action = [CCSequence actions: jump, [jump reverse], nil];

CGPoint tamarasStartPoint = [tamara position];
id jump2 = [jump copy];
id jump2 = [[jump copy] autorelease];
id jumpReversedWithTime = [CCReverseTime actionWithAction: jump2];
id action2 = [CCSequence actions: jump2, [CCPlace actionWithPosition: tamarasStartPoint], jumpReversedWithTime, nil];

Expand All @@ -993,7 +993,7 @@ -(id) init
[self alignSpritesLeft:1];

id move = [CCMoveBy actionWithDuration:1 position:ccp(150,0)];
id action = [CCSequence actions: move, [CCDelayTime actionWithDuration:2], [move copy], [CCDelayTime actionWithDuration:2], [move copy], nil];
id action = [CCSequence actions: move, [CCDelayTime actionWithDuration:2], [[move copy] autorelease], [CCDelayTime actionWithDuration:2], [[move copy] autorelease], nil];

[grossini runAction:action];

Expand Down

0 comments on commit 91b5bdb

Please sign in to comment.