Permalink
Browse files

Changed parent property of TENode to a weak reference to fix retain c…

…ycles
  • Loading branch information...
1 parent fd9831a commit 6c368159541eba12151cd2c3dec2ce6ae256c05c @artisonian artisonian committed Jun 5, 2012
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 6c36815

Please sign in to comment.