Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-12-29 01:19:24 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-12-29 01:19:24 +0300
commit6ca6d29e6b9a9f4f02ac48d8c77030f528ef4325 (patch)
tree0295fec2005a9478c5dc12da44688b2705f4de8d /tests
parent971f9e1c25daeb8064b8e6dad31dc0cfa55ba3e3 (diff)
Fix memleaks in our gtests.
Diffstat (limited to 'tests')
-rw-r--r--tests/gtests/blenlib/BLI_polyfill2d_test.cc1
-rw-r--r--tests/gtests/blenlib/BLI_stack_test.cc2
-rw-r--r--tests/gtests/bmesh/bmesh_core_test.cc1
3 files changed, 4 insertions, 0 deletions
diff --git a/tests/gtests/blenlib/BLI_polyfill2d_test.cc b/tests/gtests/blenlib/BLI_polyfill2d_test.cc
index 8ca19b11632..a4ed70fbec9 100644
--- a/tests/gtests/blenlib/BLI_polyfill2d_test.cc
+++ b/tests/gtests/blenlib/BLI_polyfill2d_test.cc
@@ -116,6 +116,7 @@ static void test_polyfill_topology(
EXPECT_EQ(true, ELEM((intptr_t)*p, 1, 2));
}
+ BLI_edgehashIterator_free(ehi);
BLI_edgehash_free(edgehash, NULL);
}
diff --git a/tests/gtests/blenlib/BLI_stack_test.cc b/tests/gtests/blenlib/BLI_stack_test.cc
index 44956a589dc..4c0b95f4b6b 100644
--- a/tests/gtests/blenlib/BLI_stack_test.cc
+++ b/tests/gtests/blenlib/BLI_stack_test.cc
@@ -116,6 +116,8 @@ TEST(stack, Peek)
}
EXPECT_EQ(BLI_stack_is_empty(stack), true);
+
+ BLI_stack_free(stack);
}
/* Check that clearing the stack leaves in it a correct state. */
diff --git a/tests/gtests/bmesh/bmesh_core_test.cc b/tests/gtests/bmesh/bmesh_core_test.cc
index 9c389a802de..0cbb6ca343e 100644
--- a/tests/gtests/bmesh/bmesh_core_test.cc
+++ b/tests/gtests/bmesh/bmesh_core_test.cc
@@ -33,4 +33,5 @@ TEST(bmesh_core, BMVertCreate) {
EXPECT_FALSE(BM_elem_flag_test((BMElem *)bv3, BM_ELEM_SELECT));
EXPECT_EQ(1.5f, BM_elem_float_data_get(&bm->vdata, bv3, CD_PROP_FLT));
EXPECT_EQ(3, BM_mesh_elem_count(bm, BM_VERT));
+ BM_mesh_free(bm);
}