UnitTests: Try to fix leak
This commit is contained in:
@@ -39,6 +39,13 @@ SCENARIO("MemoryPool", "[CORE][MEMORYPOOL]")
|
|||||||
CHECK(*vector2 == Nz::Vector2<int>(3, 5));
|
CHECK(*vector2 == Nz::Vector2<int>(3, 5));
|
||||||
CHECK(vector3->GetSquaredLength() == Approx(61.f));
|
CHECK(vector3->GetSquaredLength() == Approx(61.f));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
THEN("We can destroy the vector2")
|
||||||
|
{
|
||||||
|
memoryPool.Delete(vector1);
|
||||||
|
memoryPool.Delete(vector2);
|
||||||
|
memoryPool.Delete(vector3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user