Module: Mesa
Branch: master
Commit: 7893872a6c46a65d2f12bc0ae6bc4bd61fd3f8a1
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7893872a6c46a65d2f12bc0ae6bc4bd61fd3f8a1

Author: Jason Ekstrand <[email protected]>
Date:   Thu Mar 19 09:39:38 2020 -0500

util/sparse_array: Finish the sparse_array in the tests

Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4228>

---

 src/util/tests/sparse_array/multi_threaded.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/util/tests/sparse_array/multi_threaded.c 
b/src/util/tests/sparse_array/multi_threaded.c
index b7b4e73a1dc..b084ac994e4 100644
--- a/src/util/tests/sparse_array/multi_threaded.c
+++ b/src/util/tests/sparse_array/multi_threaded.c
@@ -72,6 +72,8 @@ run_test(unsigned run_idx)
       uint32_t *elem = util_sparse_array_get(&arr, i);
       assert(*elem == 0 || *elem == i);
    }
+
+   util_sparse_array_finish(&arr);
 }
 
 int

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to