dominikhofmann/PRTween — Issue #12: PRTweenOperation retain?
Author: typeoneerror
Created: 2012-01-06 01:58:32+00:00
State: open

I'm using PRTweenCGPointLerp helper method and I'm wondering how to release the operation when the animation is finished. Basically, with the following example, _gridB is retained by PRTween somewhere and then it never gets released when I call [_gridB release] later. If I remove the tween, it is released fine. Seems like PRTweenOperation is retaining a reference in there somewhere. Where in the classes do the generated PRTweenOperations get released?

[PRTweenCGPointLerp lerp:_gridB
property:@"center"
from:_gridB.center
to:CGPointMake(self.gridB.center.x, kGridCollapsedOffset)
duration:0.8
timingFunction:&PRTweenTimingFunctionElasticOut
updateBlock:NULL
completeBlock:^{

}];