summaryrefslogtreecommitdiff
path: root/lib/mesa/src/util/tests/vma/vma_random_test.cpp
diff options
context:
space:
mode:
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);