Skip to content

Commit

Permalink
Use delete instead of free
Browse files Browse the repository at this point in the history
Reviewed By: richardjrossiii

Differential Revision: D6866064

fbshipit-source-id: a44828cedb5045b6c97179fb30ffd8c8dafcbfbe
  • Loading branch information
ryu2 authored and facebook-github-bot committed Feb 1, 2018
1 parent 365a4d4 commit 9f57ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactCommon/yoga/yoga/Yoga.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void YGNodeFree(const YGNodeRef node) {
}

node->clearChildren();
free(node);
delete node;
gNodeInstanceCount--;
}

Expand Down

0 comments on commit 9f57ded

Please sign in to comment.