Skip to content

Commit

Permalink
Free memory from unused Yoga nodes (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Demedes authored Jun 20, 2020
1 parent 7885ffd commit 7c17e85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/reconciler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import './devtools';

const cleanupYogaNode = (node?: Yoga.YogaNode): void => {
node?.unsetMeasureFunc();
node?.freeRecursive();
};

interface Props {
Expand Down

0 comments on commit 7c17e85

Please sign in to comment.