summaryrefslogtreecommitdiff
path: root/lib/mesa/src/util/tests/vma/vma_random_test.cpp
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-07-22 10:17:30 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-07-22 10:17:30 +0000
commitca11beabae33eb59fb981b8adf50b1d47a2a98f0 (patch)
tree3e4691a396e6e54cd54224a190663d5cf976625b /lib/mesa/src/util/tests/vma/vma_random_test.cpp
parent27c8a50e8bbde7d28b1fc46d715a4c469e24f2c4 (diff)
Import Mesa 21.1.5
Diffstat (limited to 'lib/mesa/src/util/tests/vma/vma_random_test.cpp')
-rw-r--r--lib/mesa/src/util/tests/vma/vma_random_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mesa/src/util/tests/vma/vma_random_test.cpp b/lib/mesa/src/util/tests/vma/vma_random_test.cpp
index 9246176cb..44f25e47b 100644
--- a/lib/mesa/src/util/tests/vma/vma_random_test.cpp
+++ b/lib/mesa/src/util/tests/vma/vma_random_test.cpp
@@ -78,6 +78,11 @@ struct random_test {
util_vma_heap_init(&heap, MEM_START_PAGE * MEM_PAGE_SIZE, MEM_SIZE);
}
+ ~random_test()
+ {
+ util_vma_heap_finish(&heap);
+ }
+
void test(unsigned long count)
{
std::uniform_int_distribution<> one_to_thousand(1, 1000);