From 197b2260f2ed302c08a4f00dcb3fefc8816d0c77 Mon Sep 17 00:00:00 2001 From: simonla Date: Wed, 12 Oct 2022 19:49:35 +0800 Subject: [PATCH] Fix memory leak --- tests/YGNodeChildTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/YGNodeChildTest.cpp b/tests/YGNodeChildTest.cpp index 70273447..39ed22db 100644 --- a/tests/YGNodeChildTest.cpp +++ b/tests/YGNodeChildTest.cpp @@ -31,4 +31,5 @@ TEST(YogaTest, reset_layout_when_child_removed) { ASSERT_TRUE(YGFloatIsUndefined(YGNodeLayoutGetHeight(root_child0))); YGNodeFreeRecursive(root); + YGNodeFreeRecursive(root_child0); }