UnitTests: Try to fix leak

This commit is contained in:
Jérôme Leclercq 2022-02-05 16:24:05 +01:00
parent e91718cd93
commit 33dddf6d41
1 changed files with 7 additions and 0 deletions

View File

@ -39,6 +39,13 @@ SCENARIO("MemoryPool", "[CORE][MEMORYPOOL]")
CHECK(*vector2 == Nz::Vector2<int>(3, 5));
CHECK(vector3->GetSquaredLength() == Approx(61.f));
}
THEN("We can destroy the vector2")
{
memoryPool.Delete(vector1);
memoryPool.Delete(vector2);
memoryPool.Delete(vector3);
}
}
}
}