Skip to content

Commit

Permalink
fix(android): animationModule memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
iPel authored and zealotchen0 committed Aug 7, 2023
1 parent 6607478 commit 55c38b9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ public void destroy() {
if (mContext.getDomManager() != null) {
mContext.getDomManager().removeActionInterceptor(this);
}
for (int i = 0, size = mAnimations.size(); i < size; ++i) {
Animation animation = mAnimations.valueAt(i);
animation.stop();
}
mAnimations.clear();
super.destroy();
}

Expand Down

0 comments on commit 55c38b9

Please sign in to comment.