Free memory used in tests to enable use of valgrind
Summary: Its very usefull to be able to run valgrind on the tests and benchmarks. We were previously not freeing test memory so valgrind output was very messy. Reviewed By: javache Differential Revision: D3937493 fbshipit-source-id: 23c6970d7769b081575d39de583ba954fc65a397
This commit is contained in:
committed by
Facebook Github Bot
parent
dbf3b11946
commit
1f300a58fb
@@ -39,6 +39,8 @@ TEST(CSSLayoutTest, dirty_propagation) {
|
||||
EXPECT_FALSE(CSSNodeIsDirty(root_child0));
|
||||
EXPECT_FALSE(CSSNodeIsDirty(root_child1));
|
||||
EXPECT_FALSE(CSSNodeIsDirty(root));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
||||
TEST(CSSLayoutTest, dirty_propagation_only_if_prop_changed) {
|
||||
@@ -64,4 +66,6 @@ TEST(CSSLayoutTest, dirty_propagation_only_if_prop_changed) {
|
||||
EXPECT_FALSE(CSSNodeIsDirty(root_child0));
|
||||
EXPECT_FALSE(CSSNodeIsDirty(root_child1));
|
||||
EXPECT_FALSE(CSSNodeIsDirty(root));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
Reference in New Issue
Block a user