Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix memory leak caused by running actions

  • Loading branch information...
commit 785ab9d8bb89709071401199bc84f39e77115c9b 1 parent ce11f9d
@ryanwilliams authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/ActionManager.js
View
2  src/ActionManager.js
@@ -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.
Something went wrong with that request. Please try again.