Permalink
Browse files

Merge pull request #2 from artisonian/master

Fixes retain cycle in TENode parent/child relationship
  • Loading branch information...
ianterrell committed Jun 5, 2012
2 parents fd9831a + 6c36815 commit 17f133c8da1c5d678a1857d194e71864eb3df127
Showing with 2 additions and 2 deletions.
  1. +2 −2 TauEngine/TENode.h
View
@@ -25,7 +25,7 @@
NSMutableArray *currentAnimations;
- TENode *parent;
+ __weak TENode *parent;
NSMutableArray *children;
BOOL remove;
@@ -46,7 +46,7 @@
@property(strong, nonatomic) NSString *name;
@property(strong, nonatomic) TEDrawable *drawable;
@property(readonly) TEShape *shape;
-@property(strong, nonatomic) TENode *parent;
+@property(weak, nonatomic) TENode *parent;
@property float maxVelocity, maxAcceleration, maxAngularVelocity, maxAngularAcceleration;
@property BOOL remove;
@property BOOL collide;

0 comments on commit 17f133c

Please sign in to comment.