From 33dddf6d412c0828d1293b5e3dcccbc3e651101a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Sat, 5 Feb 2022 16:24:05 +0100 Subject: [PATCH] UnitTests: Try to fix leak --- tests/Engine/Core/MemoryPoolTest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Engine/Core/MemoryPoolTest.cpp b/tests/Engine/Core/MemoryPoolTest.cpp index 41987e45b..fcf7c533e 100644 --- a/tests/Engine/Core/MemoryPoolTest.cpp +++ b/tests/Engine/Core/MemoryPoolTest.cpp @@ -39,6 +39,13 @@ SCENARIO("MemoryPool", "[CORE][MEMORYPOOL]") CHECK(*vector2 == Nz::Vector2(3, 5)); CHECK(vector3->GetSquaredLength() == Approx(61.f)); } + + THEN("We can destroy the vector2") + { + memoryPool.Delete(vector1); + memoryPool.Delete(vector2); + memoryPool.Delete(vector3); + } } } }