# Dispose()

> Deals with freeing and releasing unmanaged memory allocated by the entity command buffer.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

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