# Dispose()

> Dispose of any allocated memory. This must be called if any targets are returned otherwise memory leaks will occur.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public void Dispose()
```
