Permalink
Browse files

Fix memory leak caused by running actions

  • Loading branch information...
1 parent ce11f9d commit 785ab9d8bb89709071401199bc84f39e77115c9b @ryanwilliams committed Mar 14, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/ActionManager.js
View
@@ -129,6 +129,8 @@ ActionManager.inherit(Object, /** @lends cocos.ActionManager# */ {
if (!element) {
return
}
+
+ delete this.targets[targetID]
// Delete everything in array but don't replace it incase something else has a reference
element.actions.splice(0, element.actions.length)
},

0 comments on commit 785ab9d

Please sign in to comment.